Remostart commited on
Commit
2ad2eb1
·
verified ·
1 Parent(s): f3dc292

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +36 -1
app.py CHANGED
@@ -167,4 +167,39 @@ with gr.Blocks(theme="default") as iface:
167
  "What is Plutus",
168
  "Introduction to Plutus Smart Contracts",
169
  "Understanding Cardano Blockchain",
170
- "Validator Script
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  "What is Plutus",
168
  "Introduction to Plutus Smart Contracts",
169
  "Understanding Cardano Blockchain",
170
+ "Validator Scripts in Plutus",
171
+ "Plutus Tx",
172
+ "Datum and Redeemer",
173
+ "Time Handling in Plutus",
174
+ "Off-Chain Code",
175
+ "On-Chain Constraints",
176
+ "Plutus Core",
177
+ "Transaction Validation",
178
+ "Cardano Node Integration",
179
+ ],
180
+ label="Topic",
181
+ value=None,
182
+ allow_custom_value=False,
183
+ scale=2,
184
+ )
185
+
186
+ with gr.Row():
187
+ generate_btn = gr.Button("Generate")
188
+ regen = gr.Button("🔁 Regenerate")
189
+
190
+ output = gr.Textbox(
191
+ label="Model Response",
192
+ lines=14,
193
+ interactive=False,
194
+ show_copy_button=True,
195
+ placeholder="Your tailored explanation will appear here…",
196
+ )
197
+
198
+ generate_btn.click(orchestrator, [personality, level, topic], output, queue=True)
199
+ regen.click(orchestrator, [personality, level, topic], output, queue=True)
200
+
201
+ # Keep queue simple for broad Gradio compatibility
202
+ iface.queue()
203
+
204
+ if __name__ == "__main__":
205
+ iface.launch(server_name="0.0.0.0", server_port=7860)