Time machine ? - What wind.surf will do ?
Browse files
app.py
CHANGED
|
@@ -72,6 +72,7 @@ def respond(
|
|
| 72 |
message_repl = message_repl + \
|
| 73 |
chunk['choices'][0]["delta"]["content"]
|
| 74 |
yield message_repl
|
|
|
|
| 75 |
"""
|
| 76 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 77 |
"""
|
|
@@ -145,14 +146,4 @@ demo = gr.ChatInterface(
|
|
| 145 |
|
| 146 |
|
| 147 |
if __name__ == "__main__":
|
| 148 |
-
|
| 149 |
-
with gr.Blocks() as blocks:
|
| 150 |
-
chatbot = demo.render()
|
| 151 |
-
# Get the model dropdown component
|
| 152 |
-
model_dropdown = [comp for comp in chatbot.children if isinstance(comp, gr.Dropdown)][0]
|
| 153 |
-
# Add event handler for model change
|
| 154 |
-
model_dropdown.change(fn=lambda x: None, inputs=[model_dropdown], outputs=[])
|
| 155 |
-
blocks.launch()
|
| 156 |
-
=======
|
| 157 |
-
demo.launch()
|
| 158 |
-
>>>>>>> parent of 617316d (List of models ? - What wind.surf will do ?)
|
|
|
|
| 72 |
message_repl = message_repl + \
|
| 73 |
chunk['choices'][0]["delta"]["content"]
|
| 74 |
yield message_repl
|
| 75 |
+
|
| 76 |
"""
|
| 77 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 78 |
"""
|
|
|
|
| 146 |
|
| 147 |
|
| 148 |
if __name__ == "__main__":
|
| 149 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|