SivaResearch commited on
Commit
19f3089
1 Parent(s): 0ee3fcc

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -9
app.py CHANGED
@@ -1,13 +1,22 @@
1
  import gradio as gr
2
 
3
- title = "DSM 509 Assignment: Sentiment Analysis with BERT"
4
- submitted_to = "Submitted to: Prof. Neeharika Sinha"
5
- developed_by = """
6
- Developed by:
7
- Group No. 18
8
- Roll No. | Email ID | Name
9
- 2204107023 | msdsm2204107023@iiti.ac.in | GOUTAM PANIGRAHI
10
- 2204107046 | msdsm2204107046@iiti.ac.in | SIVASHANKAR SELVARAJAN
 
 
11
  """
12
 
13
- gr.load("models/SivaResearch/DSM_509_Assignment_Sentiment_analysis_BERT_SIVA_GOWTHAM").launch(title=title, description=submitted_to + "\n" + developed_by)
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # Define the markdown text
4
+ markdown_text = """
5
+ # DSM_509_Assignment_Sentiment_analysis_BERT_SIVA_GOWTHAM
6
+ ## Submitted to : Prof.Neeharika Sinha
7
+
8
+ ### Developed by:
9
+ #### Group No. 18
10
+ #### Roll No. | Email ID | Name
11
+ #### 2204107023 | msdsm2204107023@iiti.ac.in | GOUTAM PANIGRAHI
12
+ #### 2204107046 | msdsm2204107046@iiti.ac.in | SIVASHANKAR SELVARAJAN
13
  """
14
 
15
+ # Create a markdown component
16
+ markdown = gr.outputs.Markdown(markdown_text)
17
+
18
+ # Load the model
19
+ iface = gr.Interface.load("models/SivaResearch/DSM_509_Assignment_Sentiment_analysis_BERT_SIVA_GOWTHAM")
20
+
21
+ # Add the markdown component to the interface
22
+ iface.launch(inbrowser=True, output=markdown)