Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,8 +89,7 @@ else:
|
|
89 |
rows_info = [f"Row {coordinate[0] + 1}, Column '{df.columns[coordinate[1]]}' with value {cell}"
|
90 |
for coordinate, cell in zip(coordinates, cells)]
|
91 |
rows_description = " and ".join(rows_info)
|
92 |
-
|
93 |
-
base_sentence += f" This includes the following data: {rows_description}."
|
94 |
|
95 |
# Generate a fluent response using the T5 model, rephrasing the base sentence
|
96 |
input_text = f"Given the question: '{question}', generate a more human-readable response: {base_sentence}"
|
@@ -109,5 +108,3 @@ else:
|
|
109 |
except Exception as e:
|
110 |
st.warning(f"Error processing question or generating answer: {str(e)}")
|
111 |
st.warning("Please retype your question and make sure to use the column name and cell value correctly.")
|
112 |
-
|
113 |
-
st.balloons()
|
|
|
89 |
rows_info = [f"Row {coordinate[0] + 1}, Column '{df.columns[coordinate[1]]}' with value {cell}"
|
90 |
for coordinate, cell in zip(coordinates, cells)]
|
91 |
rows_description = " and ".join(rows_info)
|
92 |
+
base_sentence += f" This includes the following data: {rows_description}."
|
|
|
93 |
|
94 |
# Generate a fluent response using the T5 model, rephrasing the base sentence
|
95 |
input_text = f"Given the question: '{question}', generate a more human-readable response: {base_sentence}"
|
|
|
108 |
except Exception as e:
|
109 |
st.warning(f"Error processing question or generating answer: {str(e)}")
|
110 |
st.warning("Please retype your question and make sure to use the column name and cell value correctly.")
|
|
|
|