Spaces:
Paused
Paused
ai: Ok! Let's begin, lol.
Browse files- README.md +4 -4
- app.py → jarvis.py +2 -2
README.md
CHANGED
|
@@ -3,8 +3,8 @@ title: Jarvis AI
|
|
| 3 |
colorFrom: yellow
|
| 4 |
colorTo: purple
|
| 5 |
sdk: gradio
|
| 6 |
-
sdk_version: 5.
|
| 7 |
-
app_file:
|
| 8 |
-
pinned:
|
| 9 |
short_description: Inspired by Iron Man movies.
|
| 10 |
-
---
|
|
|
|
| 3 |
colorFrom: yellow
|
| 4 |
colorTo: purple
|
| 5 |
sdk: gradio
|
| 6 |
+
sdk_version: 5.23.1
|
| 7 |
+
app_file: jarvis.py
|
| 8 |
+
pinned: true
|
| 9 |
short_description: Inspired by Iron Man movies.
|
| 10 |
+
---
|
app.py → jarvis.py
RENAMED
|
@@ -148,7 +148,7 @@ def respond(multi_input, history, selected_model_display):
|
|
| 148 |
def change_model(new_model_display):
|
| 149 |
return [], new_model_display
|
| 150 |
|
| 151 |
-
with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], head=META_TAGS) as
|
| 152 |
user_history = gr.State([])
|
| 153 |
selected_model = gr.State(MODEL_CHOICES[0])
|
| 154 |
chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"])
|
|
@@ -158,4 +158,4 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
|
|
| 158 |
model_dropdown.change(fn=change_model, inputs=[model_dropdown], outputs=[user_history, selected_model])
|
| 159 |
msg.submit(fn=respond, inputs=[msg, user_history, selected_model], outputs=[chatbot, msg])
|
| 160 |
|
| 161 |
-
|
|
|
|
| 148 |
def change_model(new_model_display):
|
| 149 |
return [], new_model_display
|
| 150 |
|
| 151 |
+
with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], head=META_TAGS) as jarvis:
|
| 152 |
user_history = gr.State([])
|
| 153 |
selected_model = gr.State(MODEL_CHOICES[0])
|
| 154 |
chatbot = gr.Chatbot(label=AI_TYPES["AI_TYPE_1"], show_copy_button=True, scale=1, elem_id=AI_TYPES["AI_TYPE_2"])
|
|
|
|
| 158 |
model_dropdown.change(fn=change_model, inputs=[model_dropdown], outputs=[user_history, selected_model])
|
| 159 |
msg.submit(fn=respond, inputs=[msg, user_history, selected_model], outputs=[chatbot, msg])
|
| 160 |
|
| 161 |
+
jarvis.launch(show_api=False, max_file_size="1mb")
|