Pachinee commited on
Commit
d7d67e9
·
verified ·
1 Parent(s): 1c8ceba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -1,14 +1,14 @@
1
- import sys
2
- from pathlib import Path
3
 
4
- # --- FIX IMPORT PATH FOR STREAMLIT ---
5
- ROOT_DIR = Path(__file__).resolve().parent
6
- sys.path.append(str(ROOT_DIR))
7
- # ------------------------------------
8
 
9
- import streamlit as st
10
- import pandas as pd
11
- import json
 
 
 
12
 
13
- from utils.preprocess import preprocess_text
14
- from utils.predict import load_model, predict_label
 
1
+ import gradio as gr
 
2
 
3
+ def greet(text):
4
+ return f"You typed: {text}"
 
 
5
 
6
+ demo = gr.Interface(
7
+ fn=greet,
8
+ inputs=gr.Textbox(label="Input"),
9
+ outputs=gr.Textbox(label="Output"),
10
+ title="BRD Audit (Test)"
11
+ )
12
 
13
+ if __name__ == "__main__":
14
+ demo.launch()