jeremierostan commited on
Commit
0cf172f
·
verified ·
1 Parent(s): 0ad24e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -4,6 +4,7 @@ import pandas as pd
4
  import gradio as gr
5
  import openai
6
  import time
 
7
  from typing import List, Dict
8
  from langchain.document_loaders import AirtableLoader
9
 
@@ -84,14 +85,15 @@ def chat_with_assistant(message: str, dataframe: pd.DataFrame) -> str:
84
  def gradio_interface(question: str) -> str:
85
  return chat_with_assistant(question, airtable_data_df)
86
 
87
- # Set up Gradio interface
88
- iface = gr.Interface(
89
- fn=gradio_interface,
90
- inputs="text",
91
- outputs=gr.Markdown(),
92
- title="📅 Summative Assessment Tracker",
93
- description="I am here to help you schedule summative assessments for your students",
94
- )
 
95
 
96
  # Launch the Gradio app
97
- iface.launch(debug=True)
 
4
  import gradio as gr
5
  import openai
6
  import time
7
+ from cpr import brd_g
8
  from typing import List, Dict
9
  from langchain.document_loaders import AirtableLoader
10
 
 
85
  def gradio_interface(question: str) -> str:
86
  return chat_with_assistant(question, airtable_data_df)
87
 
88
+ with gr.Blocks() as demo:
89
+ iface = gr.Interface(
90
+ fn=gradio_interface,
91
+ inputs="text",
92
+ outputs=gr.Markdown(),
93
+ title="📅 Summative Assessment Tracker",
94
+ description="I am here to help you schedule summative assessments for your students",
95
+ )
96
+ gr.Markdown(brd_g)
97
 
98
  # Launch the Gradio app
99
+ demo.launch(debug=True)