Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ with gr.Blocks() as demo:
|
|
149 |
result = qwen_client.predict(
|
150 |
query=f"return a valid json objects with contact details foreach verein. return the generated json only \n {contact_details}",
|
151 |
history=[],
|
152 |
-
system="you are a expert for json data and your job is to extract information from text and return a valid json object only. no text no explanations",
|
153 |
api_name="/model_chat"
|
154 |
)
|
155 |
|
@@ -159,7 +159,7 @@ with gr.Blocks() as demo:
|
|
159 |
|
160 |
# Convert JSON string to Python dictionary
|
161 |
data_dict = json.loads(json_data)
|
162 |
-
|
163 |
# Convert dictionary to DataFrame
|
164 |
df = pd.DataFrame(data_dict)
|
165 |
# DataFrame in eine CSV-Datei konvertieren
|
|
|
149 |
result = qwen_client.predict(
|
150 |
query=f"return a valid json objects with contact details foreach verein. return the generated json only \n {contact_details}",
|
151 |
history=[],
|
152 |
+
system="you are a expert for json data and your job is to extract information from text and return a valid json object only. no text no explanations. foreach email_adresses = email_adresses[::-1]",
|
153 |
api_name="/model_chat"
|
154 |
)
|
155 |
|
|
|
159 |
|
160 |
# Convert JSON string to Python dictionary
|
161 |
data_dict = json.loads(json_data)
|
162 |
+
|
163 |
# Convert dictionary to DataFrame
|
164 |
df = pd.DataFrame(data_dict)
|
165 |
# DataFrame in eine CSV-Datei konvertieren
|