mgokg commited on
Commit
8177bb7
·
verified ·
1 Parent(s): be3b188

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -25,8 +25,18 @@ def take_screenshots(ort, start, end, step):
25
 
26
  wd.quit()
27
  result="\n".join(results)
28
- return "\n".join(results)
29
-
 
 
 
 
 
 
 
 
 
 
30
 
31
  iface = gr.Interface(
32
  fn=take_screenshots,
 
25
 
26
  wd.quit()
27
  result="\n".join(results)
28
+ #return "\n".join(results)
29
+
30
+ result = client.predict(
31
+ query=f"erstelle ein json objekt für die vereine {result}",
32
+ history=[],
33
+ system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
34
+ api_name="/model_chat"
35
+ )
36
+ result = result[1]
37
+ result = result[0][1]
38
+ result=gr.Markdown(result)
39
+ return result
40
 
41
  iface = gr.Interface(
42
  fn=take_screenshots,