ManthaBhuvana commited on
Commit
263612e
·
verified ·
1 Parent(s): 311d3a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -174,20 +174,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo: # Added a theme for aesthetics
174
  api_name="generate_mcqs" # Added api_name for potential API usage
175
  )
176
 
177
- # Add Examples
178
- gr.Examples(
179
- examples=[
180
- ["The cell is the basic structural and functional unit of all living organisms. Cells can be classified into two main types: prokaryotic and eukaryotic. Prokaryotic cells, found in bacteria and archaea, lack a defined nucleus and membrane-bound organelles. In contrast, eukaryotic cells, which make up plants, animals, fungi, and protists, contain a nucleus that houses the cell’s DNA, as well as various organelles like mitochondria and the endoplasmic reticulum.", 3],
181
- ["The Industrial Revolution began in Great Britain in the late 18th century. It marked a shift from manual labor to machine-based manufacturing. Key innovations included the steam engine, improved by James Watt, and mechanized looms in the textile industry. This led to increased productivity, urbanization, and the rise of new social classes.", 4],
182
- ["Photosynthesis is the process used by plants, algae, and cyanobacteria to convert light energy into chemical energy, through a process that uses sunlight, water and carbon dioxide. This chemical energy is stored in carbohydrate molecules, such as sugars and starches, which are synthesized from carbon dioxide and water – hence the name photosynthesis, from the Greek φῶς, phos, 'light', and σύνθεσις, synthesis, 'putting together'. In most cases, oxygen is also released as a waste product.", 5]
183
- ],
184
- inputs=[paragraph_input, num_questions_slider],
185
- outputs=[mcq_output, download_txt, download_csv, status], # Ensure outputs match here too
186
- fn=generate_mcqs_ui,
187
- cache_examples=False # Maybe disable caching during debugging
188
- )
189
-
190
-
191
  # --- Launch the app ---
192
  # share=True generates a public link (useful for HF Spaces)
193
  # server_name="0.0.0.0" makes it accessible within the container network
 
174
  api_name="generate_mcqs" # Added api_name for potential API usage
175
  )
176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
  # --- Launch the app ---
178
  # share=True generates a public link (useful for HF Spaces)
179
  # server_name="0.0.0.0" makes it accessible within the container network