Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
|
|
3 |
|
4 |
# Create a text classification pipeline
|
5 |
classifier = pipeline("text-classification", model="Ahmed235/roberta_classification", tokenizer="Ahmed235/roberta_classification")
|
@@ -44,4 +45,4 @@ iface = gr.Interface(
|
|
44 |
)
|
45 |
|
46 |
# Deploy the Gradio interface
|
47 |
-
iface.launch(share=True)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
from pptx import Presentation # Import the Presentation class
|
4 |
|
5 |
# Create a text classification pipeline
|
6 |
classifier = pipeline("text-classification", model="Ahmed235/roberta_classification", tokenizer="Ahmed235/roberta_classification")
|
|
|
45 |
)
|
46 |
|
47 |
# Deploy the Gradio interface
|
48 |
+
iface.launch(share=True)
|