Kuberwastaken commited on
Commit
6ae645e
·
1 Parent(s): 0f14ef5

Added gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +14 -0
gradio_app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from model.analyzer import analyze_content
3
+
4
+ # Create and launch the Gradio interface
5
+ iface = gr.Interface(
6
+ fn=analyze_content,
7
+ inputs=gr.Textbox(lines=8, label="Input Text"),
8
+ outputs=gr.JSON(),
9
+ title="Content Analysis",
10
+ description="Analyze text content for sensitive topics"
11
+ )
12
+
13
+ if __name__ == "__main__":
14
+ iface.launch()