Update app.py
Browse files
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 |
-
|
88 |
-
iface = gr.Interface(
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
)
|
|
|
95 |
|
96 |
# Launch the Gradio app
|
97 |
-
|
|
|
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)
|