Upload app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
File: app.py
|
| 3 |
+
Description: Chat with the vision language model Mistral Small.
|
| 4 |
+
Author: Didier Guillevic
|
| 5 |
+
Date: 2025-03-18
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
import gradio as gr
|
| 9 |
+
|
| 10 |
+
from module_chat import demo as chat_block
|
| 11 |
+
from module_translation import demo as translation_block
|
| 12 |
+
from module_rewriting import demo as rewriting_block
|
| 13 |
+
|
| 14 |
+
demo = gr.TabbedInterface(
|
| 15 |
+
interface_list=[chat_block, translation_block, rewriting_block],
|
| 16 |
+
tab_names=["Chat", "Translation", "Rewriting"],
|
| 17 |
+
title="Multimedia Chat (Mistral Small)"
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
demo.launch(api=False)
|