Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from deep_translator import GoogleTranslator
|
4 |
|
5 |
# Initialize the InferenceClient and the translators
|
6 |
-
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.
|
7 |
translator_to_en = GoogleTranslator(source='hindi', target='english')
|
8 |
translator_to_ar = GoogleTranslator(source='english', target='hindi')
|
9 |
|
@@ -92,16 +92,11 @@ examples = [
|
|
92 |
#title = "<h1 style='text-align: center; font-weight: bold;'>My Centered and Bold Title</h1>"
|
93 |
#title = "<div style='text-align: center; font-weight: bold;'>My Centered and Bold Title</div>"
|
94 |
|
95 |
-
title=
|
|
|
|
|
|
|
96 |
"""
|
97 |
-
<center>
|
98 |
-
|
99 |
-
<h1> Title cannot be display in center 🛰️ </h1>
|
100 |
-
<b> text 📧<b>
|
101 |
-
|
102 |
-
</center>
|
103 |
-
"""
|
104 |
-
)
|
105 |
|
106 |
gr.ChatInterface(
|
107 |
fn=generate,
|
|
|
3 |
from deep_translator import GoogleTranslator
|
4 |
|
5 |
# Initialize the InferenceClient and the translators
|
6 |
+
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.3")
|
7 |
translator_to_en = GoogleTranslator(source='hindi', target='english')
|
8 |
translator_to_ar = GoogleTranslator(source='english', target='hindi')
|
9 |
|
|
|
92 |
#title = "<h1 style='text-align: center; font-weight: bold;'>My Centered and Bold Title</h1>"
|
93 |
#title = "<div style='text-align: center; font-weight: bold;'>My Centered and Bold Title</div>"
|
94 |
|
95 |
+
title = """
|
96 |
+
<div style='text-align: center; font-weight: bold; font-size: 24px;'>
|
97 |
+
My Centered and Bold Title
|
98 |
+
</div>
|
99 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
gr.ChatInterface(
|
102 |
fn=generate,
|