Falah commited on
Commit
e81fde2
1 Parent(s): beebfc8
Files changed (1) hide show
  1. app.py +16 -2
app.py CHANGED
@@ -35,13 +35,27 @@ def detect_and_visualize_objects(image):
35
  # Define the Gradio interface
36
  image_input = gr.inputs.Image(type="pil")
37
  image_output = gr.outputs.Image(type="pil")
38
-
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  iface = gr.Interface(
40
  fn=detect_and_visualize_objects,
41
  inputs=image_input,
42
  outputs=image_output,
43
  title="Space and War Missile Detection System",
44
- description="Detect objects in an image using a pre-trained model and visualize the results."
 
45
  )
46
 
47
  # Launch the Gradio interface
 
35
  # Define the Gradio interface
36
  image_input = gr.inputs.Image(type="pil")
37
  image_output = gr.outputs.Image(type="pil")
38
+ articles = [
39
+ gr.Article(
40
+ title="Introduction to Text Generation",
41
+ content="Text generation is the process of creating natural language text using computational methods. It is a subfield of natural language processing and has applications in various domains such as chatbots, language translation, and creative writing.",
42
+ ),
43
+ gr.Article(
44
+ title="GPT-2 Model",
45
+ content="GPT-2 (Generative Pre-trained Transformer 2) is a state-of-the-art language model developed by OpenAI. It is trained on a massive amount of text data and can generate coherent and contextually relevant text based on a given prompt.",
46
+ ),
47
+ gr.Article(
48
+ title="How to Use",
49
+ content="To generate text, simply enter a prompt in the text input box and click the 'Generate' button. The model will then generate multiple text outputs based on the prompt. You can experiment with different prompts to see how the generated text changes.",
50
+ ),
51
+ ]
52
  iface = gr.Interface(
53
  fn=detect_and_visualize_objects,
54
  inputs=image_input,
55
  outputs=image_output,
56
  title="Space and War Missile Detection System",
57
+ description="Detect objects in an image using a pre-trained model and visualize the results.",
58
+ article=articles
59
  )
60
 
61
  # Launch the Gradio interface