Spaces:
Runtime error
Runtime error
Download app.py from vinayakdev/qa-generator: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/spaces/vinayakdev/qa-generator/resolve/fb508d90f0df92106a07c159408b1e85e7c557ec/app.py
- Command line
-
hf download hf://spaces/vinayakdev/qa-generator@fb508d90f0df92106a07c159408b1e85e7c557ec/app.py
-
curl -L -o app.py https://huggingface.co/spaces/vinayakdev/qa-generator/resolve/fb508d90f0df92106a07c159408b1e85e7c557ec/app.py
431 Bytes
| import streamlit as st | |
| import generator | |
| from generator import * | |
| i = 0 | |
| st.text("To increase the number of questions, please seperate two paragraphs wth one line in between.\n") | |
| text_ar = st.text_area("Enter text:") | |
| col1, col2, col3 = st.columns([2,1,2]) | |
| if(col2.button("Generate!")): | |
| text_ar = text_ar.replace("\n"," ") | |
| pairs = creator(text_ar) | |
| for pair in pairs: | |
| st.text(pair) | |
| st.balloons() | |