Jether commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,23 +60,7 @@ demo = gr.ChatInterface(
|
|
| 60 |
],
|
| 61 |
)
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
import gradio as gr
|
| 66 |
-
import random
|
| 67 |
-
|
| 68 |
-
def random_response(message, history):
|
| 69 |
-
return random.choice(["Hi!", "Hello!", "Greetings!"])
|
| 70 |
-
|
| 71 |
-
with gr.Blocks() as demo:
|
| 72 |
-
gr.ChatInterface(
|
| 73 |
-
random_response,
|
| 74 |
-
title="Greeting OptoBot",
|
| 75 |
-
description="Ask anything and receive a nice greeting!",
|
| 76 |
-
)
|
| 77 |
-
gr.DeepLinkButton()
|
| 78 |
-
|
| 79 |
-
|
| 80 |
|
| 81 |
if __name__ == "__main__":
|
| 82 |
demo.launch(share=True)
|
|
|
|
| 60 |
],
|
| 61 |
)
|
| 62 |
|
| 63 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
if __name__ == "__main__":
|
| 66 |
demo.launch(share=True)
|