Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,11 @@ from urllib.parse import urljoin
|
|
5 |
|
6 |
def parse_links(prompt):
|
7 |
#anfrage ='fill in the missing contact information. do not reference the json object. do not use html tags inside the json object. it must be valid json. do not return explanaitons or any other text. thanks for your efforts:)'
|
|
|
8 |
anfrage ="""
|
9 |
-
fill in the missing contact information. do not reference the json object. do not use html tags inside the json object. it must be valid json. do not return explanaitons or any other text.
|
10 |
{
|
11 |
-
"Name":
|
12 |
"Email": "",
|
13 |
"Website": "",
|
14 |
"Phone": ""
|
@@ -28,7 +29,7 @@ def parse_links(prompt):
|
|
28 |
},
|
29 |
"optimizationMode": "balanced",
|
30 |
"focusMode": "webSearch",
|
31 |
-
"query": f"{anfrage}. outputformat=json",
|
32 |
"history": [
|
33 |
["human", "Hi, how are you?"],
|
34 |
["assistant", "I am doing well, how can I help you today?"]
|
|
|
5 |
|
6 |
def parse_links(prompt):
|
7 |
#anfrage ='fill in the missing contact information. do not reference the json object. do not use html tags inside the json object. it must be valid json. do not return explanaitons or any other text. thanks for your efforts:)'
|
8 |
+
Name=prompt
|
9 |
anfrage ="""
|
10 |
+
fill in the missing contact information. do not reference the json object. do not use html tags inside the json object. it must be valid json. do not return explanaitons or any other text.
|
11 |
{
|
12 |
+
"Name": "SV Garitz",
|
13 |
"Email": "",
|
14 |
"Website": "",
|
15 |
"Phone": ""
|
|
|
29 |
},
|
30 |
"optimizationMode": "balanced",
|
31 |
"focusMode": "webSearch",
|
32 |
+
"query": f"Name={prompt}\n{anfrage}. outputformat=json",
|
33 |
"history": [
|
34 |
["human", "Hi, how are you?"],
|
35 |
["assistant", "I am doing well, how can I help you today?"]
|