Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def process_input_gradio(problem_description: str):
|
|
115 |
return (
|
116 |
prompt,
|
117 |
", ".join(constraints),
|
118 |
-
", ".join(constraints_stemmed),
|
119 |
"Global technologies loaded and ready.", # Acknowledge tech loading
|
120 |
str(result_similarities_display), # Convert dict to string for display
|
121 |
pd.DataFrame(matrix_display, index=constraints_stemmed, columns=global_tech['name']), # Display matrix as DataFrame
|
|
|
115 |
return (
|
116 |
prompt,
|
117 |
", ".join(constraints),
|
118 |
+
", ".join([f'{item["title"]}: {item["description"]}' for item in constraints_stemmed]),
|
119 |
"Global technologies loaded and ready.", # Acknowledge tech loading
|
120 |
str(result_similarities_display), # Convert dict to string for display
|
121 |
pd.DataFrame(matrix_display, index=constraints_stemmed, columns=global_tech['name']), # Display matrix as DataFrame
|