mgokg commited on
Commit
db8fb45
·
verified ·
1 Parent(s): df1388c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 a valid json object \n {jsondata}",
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.Markdown(label="Ausgabe", elem_id="md")
119
  with gr.Row():
120
- ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
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