Spaces:
Runtime error
Runtime error
Commit
·
2a3038f
1
Parent(s):
b81ae68
Testing something else with app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ examples = ['sambar.jpg', 'rasam.jpg']
|
|
16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
17 |
intf.launch()"""
|
18 |
|
19 |
-
import transformers
|
20 |
from transformers import AutoTokenizer
|
21 |
import torch
|
22 |
import gradio as gr
|
@@ -29,7 +29,7 @@ pipeline = transformers.pipeline(
|
|
29 |
model=model,
|
30 |
torch_dtype=torch.float16,
|
31 |
device_map="auto",
|
32 |
-
)
|
33 |
|
34 |
|
35 |
def debate_response(text):
|
|
|
16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
17 |
intf.launch()"""
|
18 |
|
19 |
+
"""import transformers
|
20 |
from transformers import AutoTokenizer
|
21 |
import torch
|
22 |
import gradio as gr
|
|
|
29 |
model=model,
|
30 |
torch_dtype=torch.float16,
|
31 |
device_map="auto",
|
32 |
+
)"""
|
33 |
|
34 |
|
35 |
def debate_response(text):
|