Spaces:
Runtime error
Runtime error
Shunfeng Zheng
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ if st.button("Submit"):
|
|
13 |
json={"data": [text]},
|
14 |
timeout=20
|
15 |
)
|
|
|
16 |
result = response.json()["data"][0]
|
17 |
st.success(f"Parsed Output:\n\n{result}")
|
18 |
except Exception as e:
|
|
|
13 |
json={"data": [text]},
|
14 |
timeout=20
|
15 |
)
|
16 |
+
st.write("Raw response:", response.text) # 调试信息
|
17 |
result = response.json()["data"][0]
|
18 |
st.success(f"Parsed Output:\n\n{result}")
|
19 |
except Exception as e:
|