Ahsen Khaliq commited on
Commit
22e7634
1 Parent(s): de69094

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ title = "DeBERTa-v3-base-mnli-fever-anli"
3
+
4
+ description = "Gradio demo for DeBERTa-v3-base-mnli-fever-anli. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
5
+ article = "<p style='text-align: center'><a href='https://huggingface.co/MoritzLaurer/DeBERTa-v3-base-mnli' target='_blank'>Huggingface Model</a></p>"
6
+
7
+ gr.Interface.load("huggingface/MoritzLaurer/DeBERTa-v3-base-mnli",title=title,
8
+ description=description,
9
+ article=article,
10
+ examples=[
11
+ ["""A new model offers an explanation for how the Galilean satellites formed around the solar system’s largest world. Konstantin Batygin did not set out to solve one of the solar system’s most puzzling mysteries when he went for a run up a hill in Nice, France. Dr. Batygin, a Caltech researcher, best known for his contributions to the search for the solar system’s missing “Planet Nine,” spotted a beer bottle. At a steep, 20 degree grade, he wondered why it wasn’t rolling down the hill. He realized there was a breeze at his back holding the bottle in place. Then he had a thought that would only pop into the mind of a theoretical astrophysicist: “Oh! This is how Europa formed.” Europa is one of Jupiter’s four large Galilean moons. And in a paper published Monday in the Astrophysical Journal, Dr. Batygin and a co-author, Alessandro Morbidelli, a planetary scientist at the Côte d’Azur Observatory in France, present a theory explaining how some moons form around gas giants like Jupiter and Saturn, suggesting that millimeter-sized grains of hail produced during the solar system’s formation became trapped around these massive worlds, taking shape one at a time into the potentially habitable moons we know today.""","space & cosmos, scientific discovery, microbiology, robots, archeology"]
12
+ ]).launch()