- app.py +9 -0
- requirement.txt +0 -0
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
+
|
| 4 |
+
def random_response(message, history):
|
| 5 |
+
return random.choice(['y', 'n'])
|
| 6 |
+
|
| 7 |
+
if __name__ == "__main__":
|
| 8 |
+
demo = gr.ChatInterface(random_response)
|
| 9 |
+
demo.launch()
|
requirement.txt
ADDED
|
File without changes
|