Spaces:
Runtime error
Runtime error
Upload app.py
Browse filesFirst answering functionality!
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def predict(name):
|
| 4 |
-
|
| 5 |
|
| 6 |
interface = gr.ChatInterface(predict)
|
| 7 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import random
|
| 3 |
|
| 4 |
def predict(name):
|
| 5 |
+
return random.choice(["Гаф гаф!", "Гаф"])
|
| 6 |
|
| 7 |
interface = gr.ChatInterface(predict)
|
| 8 |
|