Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from selenium import webdriver
|
|
3 |
from selenium.common.exceptions import WebDriverException
|
4 |
from selenium.webdriver.common.by import By
|
5 |
|
6 |
-
|
7 |
def take_screenshots(ort, start, end, step):
|
8 |
options = webdriver.ChromeOptions()
|
9 |
options.add_argument('--headless')
|
@@ -25,12 +25,13 @@ def take_screenshots(ort, start, end, step):
|
|
25 |
|
26 |
wd.quit()
|
27 |
erg ="\n".join(results)
|
|
|
28 |
#erg=results[0]
|
29 |
#return "\n".join(results)
|
30 |
|
31 |
result = client.predict(
|
32 |
-
|
33 |
-
query="wie hoch ist der kölner dom",
|
34 |
history=[],
|
35 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
36 |
api_name="/model_chat"
|
|
|
3 |
from selenium.common.exceptions import WebDriverException
|
4 |
from selenium.webdriver.common.by import By
|
5 |
|
6 |
+
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
7 |
def take_screenshots(ort, start, end, step):
|
8 |
options = webdriver.ChromeOptions()
|
9 |
options.add_argument('--headless')
|
|
|
25 |
|
26 |
wd.quit()
|
27 |
erg ="\n".join(results)
|
28 |
+
#return erg
|
29 |
#erg=results[0]
|
30 |
#return "\n".join(results)
|
31 |
|
32 |
result = client.predict(
|
33 |
+
query=f"erstelle ein json objekt für die vereine: \n{erg}",
|
34 |
+
#query="wie hoch ist der kölner dom",
|
35 |
history=[],
|
36 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
37 |
api_name="/model_chat"
|