Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ checkpoint = "openai/whisper-base"
|
|
| 7 |
# checkpoint = "/innev/open-ai/huggingface/openai/whisper-base"
|
| 8 |
processor = WhisperProcessor.from_pretrained(checkpoint)
|
| 9 |
model = WhisperForConditionalGeneration.from_pretrained(checkpoint)
|
|
|
|
| 10 |
|
| 11 |
def greet(name):
|
| 12 |
return "Hello " + name
|
|
@@ -14,4 +15,5 @@ def greet(name):
|
|
| 14 |
|
| 15 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 16 |
|
| 17 |
-
demo.launch()
|
|
|
|
|
|
| 7 |
# checkpoint = "/innev/open-ai/huggingface/openai/whisper-base"
|
| 8 |
processor = WhisperProcessor.from_pretrained(checkpoint)
|
| 9 |
model = WhisperForConditionalGeneration.from_pretrained(checkpoint)
|
| 10 |
+
text_Interface=gr.Interface.load("models/nlpconnect/vit-gpt2-image-captioning")
|
| 11 |
|
| 12 |
def greet(name):
|
| 13 |
return "Hello " + name
|
|
|
|
| 15 |
|
| 16 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 17 |
|
| 18 |
+
demo.launch()
|
| 19 |
+
text_Interface.launch()
|