Spaces:
Runtime error
Runtime error
FuriouslyAsleep
commited on
Commit
·
6a2f335
1
Parent(s):
69703e7
Update app.py
Browse filesstringified the predictions
app.py
CHANGED
@@ -15,7 +15,7 @@ def greet(name):
|
|
15 |
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
|
16 |
#print(predictions)
|
17 |
# return "Hello " + name + "!!"
|
18 |
-
return "Probabilities are listed here (False prob, then True prob): " + predictions
|
19 |
|
20 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
21 |
iface.launch()
|
|
|
15 |
predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
|
16 |
#print(predictions)
|
17 |
# return "Hello " + name + "!!"
|
18 |
+
return "Probabilities are listed here (False prob, then True prob): " + str(predictions)
|
19 |
|
20 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
21 |
iface.launch()
|