Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ class XylariaChat:
|
|
29 |
raise ValueError("HuggingFace token not found in environment variables")
|
30 |
|
31 |
self.client = InferenceClient(
|
32 |
-
model="Qwen/
|
33 |
token=self.hf_token # Changed api_key to token
|
34 |
)
|
35 |
|
@@ -627,7 +627,7 @@ class XylariaChat:
|
|
627 |
def create_interface(self):
|
628 |
def streaming_response(message, chat_history, image_filepath, math_ocr_image_path):
|
629 |
# Placeholder for image generation
|
630 |
-
loading_svg = """<svg width="256" height="256" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
631 |
<style>
|
632 |
rect {
|
633 |
animation: fillAnimation 3s ease-in-out infinite;
|
@@ -645,8 +645,8 @@ class XylariaChat:
|
|
645 |
</style>
|
646 |
<rect width="256" height="256" rx="20" fill="#888888" />
|
647 |
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="24" fill="white" opacity="0.8">
|
648 |
-
<tspan>
|
649 |
-
<tspan x="50%" dy="1.2em"
|
650 |
</text>
|
651 |
</svg>"""
|
652 |
|
|
|
29 |
raise ValueError("HuggingFace token not found in environment variables")
|
30 |
|
31 |
self.client = InferenceClient(
|
32 |
+
model="Qwen/QwQ-32B-Preview", # Corrected model name
|
33 |
token=self.hf_token # Changed api_key to token
|
34 |
)
|
35 |
|
|
|
627 |
def create_interface(self):
|
628 |
def streaming_response(message, chat_history, image_filepath, math_ocr_image_path):
|
629 |
# Placeholder for image generation
|
630 |
+
loading_svg = f"""<svg width="256" height="256" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg">
|
631 |
<style>
|
632 |
rect {
|
633 |
animation: fillAnimation 3s ease-in-out infinite;
|
|
|
645 |
</style>
|
646 |
<rect width="256" height="256" rx="20" fill="#888888" />
|
647 |
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-size="24" fill="white" opacity="0.8">
|
648 |
+
<tspan>{/}</tspan>
|
649 |
+
<tspan x="50%" dy="1.2em"></tspan>
|
650 |
</text>
|
651 |
</svg>"""
|
652 |
|