mihalykiss commited on
Commit
2160e26
·
1 Parent(s): 34b93b5
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -89,6 +89,18 @@ Paste your text below to analyze its origin.
89
  """
90
  bottom_text = "**Developed by SzegedAI**"
91
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  iface = gr.Blocks(css="""
93
  @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');
94
 
@@ -188,6 +200,10 @@ with iface:
188
  text_input = gr.Textbox(label="", placeholder="Type or paste your content here...", elem_id="text_input_box", lines=5)
189
  result_output = gr.Markdown("**Results will appear here...**", elem_id="result_output_box")
190
  text_input.change(classify_text, inputs=text_input, outputs=result_output)
 
 
 
 
191
  gr.Markdown(bottom_text, elem_id="bottom_text")
192
 
193
  iface.launch(share=True)
 
89
  """
90
  bottom_text = "**Developed by SzegedAI**"
91
 
92
+
93
+ AI_texts = [
94
+ "Camels are remarkable desert animals known for their unique adaptations to harsh, arid environments. Native to the Middle East, North Africa, and parts of Asia, camels have been essential to human life for centuries, serving as a mode of transportation, a source of food, and even a symbol of endurance and survival. There are two primary species of camels: the dromedary camel, which has a single hump and is commonly found in the Middle East and North Africa, and the Bactrian camel, which has two humps and is native to Central Asia. Their humps store fat, not water, as commonly believed, allowing them to survive long periods without food by metabolizing the stored fat for energy. Camels are highly adapted to desert life. They can go for weeks without water, and when they do drink, they can consume up to 40 gallons in one sitting. Their thick eyelashes, sealable nostrils, and wide, padded feet protect them from sand and help them walk easily on loose desert terrain."
95
+ "Wines are a fascinating reflection of culture, history, and craftsmanship. They embody a rich diversity shaped by the land, climate, and traditions where they are produced. From the bold reds of Bordeaux to the crisp whites of New Zealand, each bottle tells a unique story. What makes wine so special is its ability to connect people. Whether shared at a family dinner, a celebratory event, or a quiet evening with friends, wine enhances experiences and brings people together. The variety of flavors and aromas, influenced by grape type, fermentation techniques, and aging processes, make wine tasting a complex yet rewarding journey for the senses."
96
+ "I find artificial intelligence (AI) to be one of the most transformative and fascinating technologies of our time. Its potential spans a wide range of applications, from automating mundane tasks to revolutionizing industries like healthcare, education, and entertainment. AI has already made significant contributions in fields like language processing, image recognition, and decision-making systems, enabling innovations that were once purely science fiction. However, as powerful as AI can be, it also brings challenges and responsibilities. Ethical considerations, such as bias in data, transparency, and the potential for misuse, need to be carefully addressed to ensure fairness and accountability. The rise of generative AI has also sparked debates about creativity, originality, and intellectual property, making it essential to strike a balance between technological advancement and respecting human contributions."
97
+ ]
98
+
99
+ Human_texts = [
100
+ "The present book is intended as a text in basic mathematics. As such, it can have multiple use: for a one-year course in the high schools during the third or fourth year (if possible the third, so that calculus can be taken during the fourth year); for a complementary reference in earlier high school grades (elementary algebra and geometry are covered); for a one-semester course at the college level, to review or to get a firm foundation in the basic mathematics necessary to go ahead in calculus, linear algebra, or other topics. Years ago, the colleges used to give courses in “ college algebra” and other subjects which should have been covered in high school. More recently, such courses have been thought unnecessary, but some experiences I have had show that they are just as necessary as ever. What is happening is that thecolleges are getting a wide variety of students from high schools, ranging from exceedingly well-prepared ones who have had a good first course in calculus, down to very poorly prepared ones. T"
101
+ "Fats are rich in energy, build body cells, support brain development of infants, help body processes, and facilitate the absorption and use of fat-soluble vitamins A, D, E, and K. The major component of lipids is glycerol and fatty acids. According to chemical properties, fatty acids can be divided into saturated and unsaturated fatty acids. Generally lipids containing saturated fatty acids are solid at room temperature and include animal fats (butter, lard, tallow, ghee) and tropical oils (palm,coconut, palm kernel). Saturated fats increase the risk of heart disease."
102
+ ]
103
+
104
  iface = gr.Blocks(css="""
105
  @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');
106
 
 
200
  text_input = gr.Textbox(label="", placeholder="Type or paste your content here...", elem_id="text_input_box", lines=5)
201
  result_output = gr.Markdown("**Results will appear here...**", elem_id="result_output_box")
202
  text_input.change(classify_text, inputs=text_input, outputs=result_output)
203
+ with gr.Tab("AI Text Examples"):
204
+ gr.Examples(AI_texts, inputs=textbox_input, outputs=label_output)
205
+ with gr.Tab("Human Text Examples"):
206
+ gr.Examples(Human_texts, inputs=textbox_input, outputs=label_output)
207
  gr.Markdown(bottom_text, elem_id="bottom_text")
208
 
209
  iface.launch(share=True)