Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -179,7 +179,32 @@ with column1:
|
|
179 |
except:
|
180 |
pass
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
|
184 |
prompt = st.text_input(label="Please use prompt to generate data",value=condition_capture['prompt'])
|
185 |
if prompt != str(condition_capture['prompt']):
|
|
|
179 |
except:
|
180 |
pass
|
181 |
|
182 |
+
if len(condition_capture['schema'])==0:
|
183 |
+
st.markdown(
|
184 |
+
"""
|
185 |
+
<div style="text-align: center; font-size: 50px; font-weight: bold; margin-top: 20px;">
|
186 |
+
Generate high-quality, realistic data effortlessly.
|
187 |
+
</div>
|
188 |
+
""",
|
189 |
+
unsafe_allow_html=True
|
190 |
+
)
|
191 |
+
newline_column1,newline_column2 = st.columns(2)
|
192 |
+
with newline_column2:
|
193 |
+
with open("animation\Data_rocket.json") as animate:
|
194 |
+
url_json=json.load(animate)
|
195 |
+
st_lottie(url_json,height = int(screen_height/4))
|
196 |
+
with newline_column1:
|
197 |
+
|
198 |
+
|
199 |
|
200 |
+
# Instructions for the user
|
201 |
+
st.markdown("""
|
202 |
+
### How it Works:
|
203 |
+
- **Step 1:** Enter a prompt to generate data.
|
204 |
+
- **step 2:** Select the number of rows you want to generate and press start processing.
|
205 |
+
- **Step 3:** AI will use Wikipedia insights to create realistic outputs.
|
206 |
+
- **Key Feature:** Less hallucination, more accurate data.
|
207 |
+
""")
|
208 |
|
209 |
prompt = st.text_input(label="Please use prompt to generate data",value=condition_capture['prompt'])
|
210 |
if prompt != str(condition_capture['prompt']):
|