jcmachicao commited on
Commit
b0346a2
verified
1 Parent(s): 9756c62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -8,6 +8,14 @@ students = ["Alice", "Bob", "Charlie"]
8
  # Initialize graph before launching UI
9
  inicializar_grafo()
10
 
 
 
 
 
 
 
 
 
11
 
12
  # Gradio Interface
13
  iface = gr.Blocks()
 
8
  # Initialize graph before launching UI
9
  inicializar_grafo()
10
 
11
+ def chat_interface(student, message):
12
+ """Handles chat messages, processes them, and updates AirTable."""
13
+ graph_image = create_graph(student, message)
14
+
15
+ # Send to AirTable (use your existing function here)
16
+ # airtable.save_record(student, message, extracted_concepts)
17
+
18
+ return graph_image
19
 
20
  # Gradio Interface
21
  iface = gr.Blocks()