Chris4K commited on
Commit
f0bc5c8
·
verified ·
1 Parent(s): b65d54b

Create app_description.py

Browse files
Files changed (1) hide show
  1. app_description.py +63 -0
app_description.py ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app_description.py
2
+
3
+ def show_app_description():
4
+ return '''
5
+ # Hugging Face Agent and Tools App
6
+
7
+ ## Description
8
+ Welcome to the Hugging Face Agent and Tools app! This app provides an interactive interface for utilizing various tools through the Hugging Face API. You can choose an inference URL and select from a variety of tools to perform different tasks.
9
+
10
+ ## Examples
11
+ 1. **Generate a Random Character**:
12
+ - Choose the desired URL and the 'Random Character Tool'.
13
+ - Then type 'Genarate random Character'
14
+
15
+ 2. **Sentiment Analysis**:
16
+ - Choose the desired URL and the 'Sentiment Analysis Tool'.
17
+ - Sample: What is the sentiment for "Hello, I am happy"?
18
+
19
+ 3. **Word Count**:
20
+ - Choose the desired URL and the 'Word Counter Tool'.
21
+ - Sample: Count the words in "Hello, I am Christof".
22
+ Other samples:
23
+
24
+ - Generate a random character.
25
+ - What is the sentiment for "Hello I am happy"
26
+ - Count the words of "Hello I am Christof”
27
+ - What is the most downloaded model for text2image
28
+ - Use ner_tool to find the information in the following text:"Hello I am Christof.".
29
+ - Download the text from https://docs.streamlit.io/get-started/installation
30
+ - Scrape source code from https://docs.streamlit.io/get-started/installation
31
+ - label for text="Hello I am Christof" classifies greeting
32
+
33
+ ## Tools
34
+ To interact with the tools, expand the section below to see tool descriptions and select the tools you want to use.
35
+
36
+ Expand to see tool descriptions
37
+
38
+ ### Tool Descriptions
39
+ - **random-character-tool:** Generates a random character.
40
+ - **text-generation-tool:** Generates text based on a prompt.
41
+ - **sentiment-tool:** Analyzes the sentiment of a given text.
42
+ - **token-counter-tool:** Counts the tokens in a text.
43
+ - **most-downloaded-model:** Provides information about the most downloaded model.
44
+ - **rag-tool:** Utilizes Retrieval-Augmented Generation (RAG) for text generation.
45
+ - **word-counter-tool:** Counts the words in a text.
46
+ - **sentence-counter-tool:** Counts the sentences in a text.
47
+ - **EmojifyTextTool:** Emojifies the given text.
48
+ - **NamedEntityRecognitionTool:** Identifies named entities in a text.
49
+ - **TextDownloadTool:** Downloads text from a given URL.
50
+ - **source-code-retriever-tool:** Retrieves source code from a given URL.
51
+ - **text-to-image:** Generates an image from text.
52
+ - **text-to-video:** Generates a video from text.
53
+ - **image-transformation:** Applies transformations to images.
54
+ - **latent-upscaler-tool:** Upscales images using latent space.
55
+
56
+ ## Usage
57
+ 1. Choose the desired inference URL from the dropdown.
58
+ 2. Expand the tool selection section and choose the tools you want to use.
59
+ 3. Enter a message in the chat input to interact with the Hugging Face Agent.
60
+ 4. View the assistant's responses, which may include images, audio, text, or other visualizations based on the selected tools.
61
+
62
+ Feel free to explore and experiment with different tools to achieve various tasks!
63
+ '''