-
Notifications
You must be signed in to change notification settings - Fork 0
/
StreamedTask.py
66 lines (61 loc) · 1.94 KB
/
StreamedTask.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from config.GeminiModel import model
query = "give me a summary of Gemini AI"
prompt_parts = [
query
]
print("Me: " + query + "\n")
response = model.generate_content(prompt_parts, stream=True)
for chunk in response:
print(chunk.text)
# Me: give me a summary of Gemini AI
#
# **Gemini AI**
#
# Gemini AI is a multimodal AI platform developed by Google AI.
# It combines the strengths of various AI models into a single, cohesive system.
#
# **Key Features:**
#
# * **Text-to-Text Generation:** Generates coherent and contextually relevant
# text for different tasks, such as story writing, translation, and
# summarization.
#
# * **Code Generation:** Writes and completes code in multiple programming
# languages, making it a valuable tool for programmers and researchers.
#
# * **Image Generation:** Creates high-quality images from text descriptions,
# enabling the creation of realistic and visually appealing artwork.
#
# * **Music Generation:** Composes music in various styles, allowing musicians
# and music enthusiasts to explore new creative possibilities.
#
# * **Multimodal Intelligence:** Combines text, code, images, and music
# capabilities to foster cross-modal understanding and enhance problem-solving
# abilities.
#
# * **Cloud-Based Platform:** Deployed on Google's cloud infrastructure,
# providing scalability and accessibility for a wide range of users.
#
# **Applications:**
#
# Gemini AI finds applications in various fields, including:
#
# * Natural language processing
# * Software engineering
# * Creative arts
# * Education
# * Healthcare
#
# **Benefits:**
#
# * **Augmented Creativity:** Enhances human creativity by providing
# AI-generated suggestions and ideas.
#
# * **Improved Efficiency:** Automates repetitive tasks, freeing up users to
# focus on higher-level work.
#
#
# * **Personalized Experiences:** Tailors results to individual preferences
# and context.
#
# * **Innovation:** Drives advancements in AI research and development.