Inside the course “Building Generative AI Applications with Gradio”
By executing the following cell, corresponding to the topic Getting started with Gradio gr.Interface:
import gradio as gr
def summarize(input):
output = get_completion(input)
return output[0][‘summary_text’]
gr.close_all()
demo = gr.Interface(fn=summarize, inputs=“text”, outputs=“text”)
demo.launch(share=True, server_port=int(os.environ[‘PORT1’]))
The result is:
Running on local URL: https://0.0.0.0:45542
Could not create share link. Missing file: /usr/local/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2.
Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
- Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
- Rename the downloaded file to: frpc_linux_amd64_v0.2
- Move the file to this location: /usr/local/lib/python3.9/site-packages/gradio
Try to download the file indicated in point 1, but it indicates that it contains a virus and does not download it.
I will appreciate your help because I am really interested in completing this course.
Greetings,
Juan