Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ client = groq.Client(api_key=api_key)
|
|
26 |
def qwen(jsondata):
|
27 |
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
28 |
result = client.predict(
|
29 |
-
query= f"return
|
30 |
history=[],
|
31 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
32 |
api_name="/model_chat"
|
@@ -115,9 +115,9 @@ def process_ort(ort):
|
|
115 |
with gr.Blocks(css=custom_css) as demo:
|
116 |
with gr.Row():
|
117 |
#details_output = gr.DataFrame(label="Ausgabe", elem_id="md")
|
118 |
-
details_output = gr.
|
119 |
with gr.Row():
|
120 |
-
ort_input = gr.Textbox(label="
|
121 |
with gr.Row():
|
122 |
button = gr.Button("Senden")
|
123 |
|
|
|
26 |
def qwen(jsondata):
|
27 |
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
28 |
result = client.predict(
|
29 |
+
query= f"return valid json \n {jsondata}",
|
30 |
history=[],
|
31 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
32 |
api_name="/model_chat"
|
|
|
115 |
with gr.Blocks(css=custom_css) as demo:
|
116 |
with gr.Row():
|
117 |
#details_output = gr.DataFrame(label="Ausgabe", elem_id="md")
|
118 |
+
details_output = gr.Textbox(label="Ausgabe", elem_id="md")
|
119 |
with gr.Row():
|
120 |
+
ort_input = gr.Textbox(label="Ort eingeben", placeholder="ask anything...")
|
121 |
with gr.Row():
|
122 |
button = gr.Button("Senden")
|
123 |
|