parquet-converter commited on
Commit
58633e5
·
1 Parent(s): 5751749

Update parquet files (step 116 of 249)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Crack Zwcad 2011 English Professional 11.md +0 -143
  2. spaces/1gistliPinn/ChatGPT4/Examples/2pac Still I Rise Zip LINK Download.md +0 -126
  3. spaces/1pelhydcardo/ChatGPT-prompt-generator/Apocalyptohollywoodmoviehindidubbinghdmp4download.md +0 -66
  4. spaces/1phancelerku/anime-remove-background/Bar Bar Live A New Generation of Live Entertainment and Social Networking.md +0 -127
  5. spaces/1phancelerku/anime-remove-background/CarX Street A Realistic and Immersive Street Racing Simulator for Android.md +0 -127
  6. spaces/1phancelerku/anime-remove-background/Cover Fire 3D Offline Shooting Game Mod APK Experience the Best of Shooting Games with Unlimited Money and More.md +0 -95
  7. spaces/1phancelerku/anime-remove-background/Download Hunter Assassin 2 Hack Mod Apk and Unlock All Characters and Weapons.md +0 -91
  8. spaces/1phancelerku/anime-remove-background/Facebook Lite APK A Smaller and Faster Version of Facebook for Android.md +0 -132
  9. spaces/AI-Zero-to-Hero/04-GR-Seq-2-Seq-QA-Auto-Gen/README.md +0 -13
  10. spaces/AIGC-Audio/Make_An_Audio/ldm/modules/encoders/open_clap/feature_fusion.py +0 -193
  11. spaces/AIZ2H/Gradio331-3D-Models-AI-1/README.md +0 -13
  12. spaces/ASJMO/freegpt/get_working_providers.py +0 -7
  13. spaces/AchyuthGamer/OpenGPT/g4f/Provider/Phind.py +0 -76
  14. spaces/Akbartus/U2net-with-rgba/app.py +0 -67
  15. spaces/Akinade/Iris_App/README.md +0 -12
  16. spaces/Alpaca233/SadTalker/src/facerender/sync_batchnorm/__init__.py +0 -12
  17. spaces/Amrrs/DragGan-Inversion/PTI/editings/latent_editor.py +0 -23
  18. spaces/Amrrs/DragGan-Inversion/PTI/models/StyleCLIP/mapper/options/train_options.py +0 -49
  19. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/api/pipelines/versatile_diffusion.md +0 -54
  20. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/experimental/README.md +0 -5
  21. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_upscale.py +0 -232
  22. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/pipelines/text_to_video/test_text_to_video.py +0 -205
  23. spaces/Andy1621/uniformer_image_detection/mmdet/core/bbox/samplers/base_sampler.py +0 -101
  24. spaces/Andy1621/uniformer_image_detection/tools/analysis_tools/eval_metric.py +0 -83
  25. spaces/Andy1621/uniformer_image_segmentation/configs/ccnet/ccnet_r50-d8_769x769_40k_cityscapes.py +0 -9
  26. spaces/Anonymous-sub/Rerender/videos/readme.md +0 -0
  27. spaces/AquaSuisei/ChatGPTXE/Dockerfile +0 -14
  28. spaces/Aravindan/butterfly_classification/app.py +0 -112
  29. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/commands/wheel.py +0 -180
  30. spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/detectron2/structures/__init__.py +0 -17
  31. spaces/Banbri/zcvzcv/src/components/ui/slider.tsx +0 -28
  32. spaces/Bart92/RVC_HF/utils/clonerepo_experimental.py +0 -253
  33. spaces/Benson/text-generation/Examples/Descarga De Vdeo De Letras De Pantalla Negra.md +0 -98
  34. spaces/Bingsu/color_textual_inversion/README.md +0 -10
  35. spaces/Brasd99/AnswerMate/README.md +0 -12
  36. spaces/CVPR/LIVE/thrust/testing/unittest/system.h +0 -33
  37. spaces/CVPR/LIVE/thrust/testing/unittest/unittest.h +0 -11
  38. spaces/CVPR/LIVE/thrust/thrust/detail/functional/operators/assignment_operator.h +0 -80
  39. spaces/ChandraMohanNayal/AutoGPT/autogpt/speech/say.py +0 -41
  40. spaces/Cicooo/vits-uma-genshin-honkai/mel_processing.py +0 -101
  41. spaces/Cpp4App/Cpp4App/CDM/detect_compo/deprecated/ocr_classify_text.py +0 -113
  42. spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/aiohttp/multipart.py +0 -961
  43. spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/click/testing.py +0 -479
  44. spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/httpcore/_sync/http_proxy.py +0 -350
  45. spaces/DaleChen/AutoGPT/tests/test_token_counter.py +0 -63
  46. spaces/Davidsamuel101/PPTGenerator/src/summarizer.py +0 -82
  47. spaces/Dinoking/Guccio-AI-Designer/models/__init__.py +0 -11
  48. spaces/Djacon/emotion_detection/main.py +0 -84
  49. spaces/DragGan/DragGan-Inversion/stylegan_human/pti/pti_models/e4e/stylegan2/op/upfirdn2d.py +0 -60
  50. spaces/ElainaFanBoy/MusicGen/audiocraft/data/__init__.py +0 -8
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Crack Zwcad 2011 English Professional 11.md DELETED
@@ -1,143 +0,0 @@
1
-
2
- <table>
3
- <tr>
4
- <td>
5
- Article with HTML formatting </td>
6
- </tr>
7
- <tr>
8
- <td>
9
- <h1>How to Crack Zwcad 2011 English Professional 11</h1>
10
- <p>Zwcad is a popular and powerful CAD (computer-aided design) software that allows you to create, edit, and view 2D and 3D drawings. It is compatible with Windows, macOS, Linux, and Android operating systems. It has many features and functions that make it a great choice for engineers, architects, designers, and students.</p>
11
- <h2>Crack Zwcad 2011 English Professional 11</h2><br /><p><b><b>Download File</b> &#9733;&#9733;&#9733;&#9733;&#9733; <a href="https://byltly.com/2uKzdE">https://byltly.com/2uKzdE</a></b></p><br /><br />
12
- <p>However, Zwcad is not a free software. You need to buy a license to use it without any limitations or restrictions. The license can cost from $799 to $1499 depending on the version and edition you choose. That's quite expensive for many people who want to use this software for personal or professional purposes.</p>
13
- <p>That's why some people look for ways to crack Zwcad 2011 English Professional 11. Cracking is a process of modifying or bypassing the security mechanisms of a software to make it work without a license or activation. By cracking Zwcad 2011 English Professional 11, you can use it for free without paying anything.</p>
14
- <p>But is cracking Zwcad 2011 English Professional 11 a good idea? What are the benefits and risks of doing so? How can you crack Zwcad 2011 English Professional 11 safely and effectively? And how can you use Zwcad 2011 English Professional 11 after cracking it?</p>
15
- <p>In this article, we will answer all these questions and more. We will guide you through the process of cracking Zwcad 2011 English Professional 11 step by step. We will also give you some tips and tricks to use Zwcad 2011 English Professional 11 after cracking it. But before we do that, let's first understand what Zwcad 2011 English Professional 11 is and how it compares with other CAD software.</p>
16
- <p></p>
17
- <h2>What is Zwcad 2011 English Professional 11?</h2>
18
- <p>Zwcad 2011 English Professional 11 is the latest version of Zwcad, a CAD software developed by ZWSOFT, a Chinese company that specializes in CAD/CAM solutions. Zwcad 2011 English Professional 11 was released in September 2020 and has many new features and improvements over the previous versions.</p>
19
- <p>Some of the main features of Zwcad 2011 English Professional 11 are:</p>
20
- <ul>
21
- <li>It supports DWG and DXF file formats, which are widely used in the CAD industry. You can open, edit, and save files created by other CAD software such as AutoCAD, BricsCAD, DraftSight, etc.</li>
22
- <li>It has a user-friendly interface that is similar to AutoCAD. You can easily switch between classic and ribbon modes, customize toolbars and menus, and use keyboard shortcuts and commands.</li>
23
- <li>It has a powerful drawing engine that can handle large and complex drawings with high speed and accuracy. You can zoom, pan, rotate, and snap objects with ease.</li>
24
- <li>It has a rich set of drawing tools and editing functions that can help you create 2D and 3D drawings. You can draw lines, arcs, circles, polylines, splines, hatches, blocks, dimensions, texts, etc. You can also modify objects by using commands such as trim, extend, fillet, chamfer, offset, mirror, array, etc.</li>
25
- <li>It has a comprehensive set of annotation tools that can help you add dimensions, leaders, tolerances, tables, symbols, etc. to your drawings. You can also use styles, layers, blocks, xrefs, etc. to organize your drawings.</li>
26
- <li>It has a built-in PDF converter that can help you export your drawings to PDF files. You can also import PDF files as underlays or vector objects.</li>
27
- <li>It has a smart voice system that can help you input commands by voice recognition. You can also use voice notes to record and play audio messages in your drawings.</li>
28
- <li>It has a cloud service that can help you store and share your drawings online. You can also access your drawings from any device by using the ZWCAD mobile app.</li>
29
- </ul>
30
- <p>Zwcad 2011 English Professional 11 is a versatile and reliable CAD software that can meet the needs of various industries and applications. Whether you are working on architecture, engineering, construction, manufacturing, design, or education projects, you can find Zwcad 2011 English Professional 11 useful and efficient.</p>
31
- <p>But how does Zwcad 2011 English Professional 11 compare with other CAD software? Let's take a look at some of the advantages and disadvantages of Zwcad 2011 English Professional 11 over its competitors.</p>
32
- <h3>The advantages of Zwcad 2011 English Professional 11 over other CAD software are:</h3>
33
- <ul>
34
- <li>It is cheaper than other CAD software. The license fee for Zwcad 2011 English Professional 11 is only $799 for the standard edition and $1499 for the professional edition. By contrast, the license fee for AutoCAD is $1695 per year and for BricsCAD is $990 per year.</li>
35
- <li>It is compatible with other CAD software. You can easily exchange files and data with other CAD software by using the DWG and DXF file formats. You can also use the same commands and shortcuts as AutoCAD.</li>
36
- <li>It is stable and fast. You can work on large and complex drawings without worrying about crashes or lags. You can also enjoy smooth performance and high quality output.</li>
37
- <li>It is easy to use and learn. You can quickly get started with Zwcad 2011 English Professional 11 by using the familiar interface and functions. You can also find plenty of tutorials and resources online to help you master the software.</li>
38
- </ul>
39
- <h3>The disadvantages of Zwcad 2011 English Professional 11 over other CAD software are:</h3>
40
- <ul>
41
- <li>It is less popular than other CAD software. You may find fewer users and communities that use Zwcad 2011 English Professional 11 than AutoCAD or BricsCAD. You may also find fewer plugins and extensions that support Zwcad 2011 English Professional 11 than other CAD software.</ <li>It is less advanced than other CAD software. You may find some features and functions that are missing or inferior in Zwcad 2011 English Professional 11 than in AutoCAD or BricsCAD. For example, Zwcad 2011 English Professional 11 does not support 3D modeling, rendering, or animation. It also has fewer customization and automation options than other CAD software.</li>
42
- <li>It is less secure than other CAD software. You may face more risks and challenges when you crack Zwcad 2011 English Professional 11 than when you crack AutoCAD or BricsCAD. You may encounter more errors, bugs, or viruses that can affect your device or data. You may also face more legal consequences if you are caught using the cracked version of the software.</li>
43
- </ul>
44
- <p>As you can see, Zwcad 2011 English Professional 11 has its pros and cons over other CAD software. You need to weigh them carefully before you decide to use it or not. But if you have already made up your mind to use Zwcad 2011 English Professional 11, you may wonder how to get it for free. That's where cracking comes in.</p>
45
- <h2>Why do you need to crack Zwcad 2011 English Professional 11?</h2>
46
- <p>As we mentioned earlier, Zwcad 2011 English Professional 11 is not a free software. You need to buy a license to use it without any limitations or restrictions. The license can cost from $799 to $1499 depending on the version and edition you choose. That's quite expensive for many people who want to use this software for personal or professional purposes.</p>
47
- <p>That's why some people look for ways to crack Zwcad 2011 English Professional 11. Cracking is a process of modifying or bypassing the security mechanisms of a software to make it work without a license or activation. By cracking Zwcad 2011 English Professional 11, you can use it for free without paying anything.</p>
48
- <p>But what are the benefits of cracking Zwcad 2011 English Professional 11? And what are the risks and challenges of cracking Zwcad 2011 English Professional 11? Let's find out.</p>
49
- <h3>The benefits of cracking Zwcad 2011 English Professional 11 are:</h3>
50
- <ul>
51
- <li>You can save money. By cracking Zwcad 2011 English Professional 11, you don't have to spend hundreds or thousands of dollars on buying the license. You can use that money for other things that are more important or valuable to you.</li>
52
- <li>You can access all the features and functions of the software. By cracking Zwcad 2011 English Professional 11, you don't have to deal with any limitations or restrictions that come with the trial version or the unlicensed version of the software. You can use all the tools and options that are available in the software without any problems.</li>
53
- <li>You can update the software regularly. By cracking Zwcad 2011 English Professional 11, you don't have to worry about missing any updates or patches that are released by the developer. You can download and install them as soon as they are available and enjoy the latest improvements and fixes.</li>
54
- </ul>
55
- <h3>The risks and challenges of cracking Zwcad 2011 English Professional 11 are:</h3>
56
- <ul>
57
- <li>You can damage your device or data. By cracking Zwcad 2011 English Professional 11, you may expose your device to malware, viruses, or hackers that can harm your device or data. You may lose your files, corrupt your system, or leak your personal information.</li>
58
- <li>You can face legal consequences. By cracking Zwcad 2011 English Professional 11, you may violate the terms and conditions of the software license and infringe the intellectual property rights of the developer. You may face lawsuits, fines, or even jail time if you are caught using the cracked version of the software.</li>
59
- <li>You can lose support and service. By cracking Zwcad 2011 English Professional 11, you may lose access to the official website, the user manual, the online forum, or the customer service of the developer. You may not be able to get help or support if you encounter any issues or problems with the software.</li>
60
- </ul>
61
- <p>As you can see, cracking Zwcad 2011 English Professional 11 has its advantages and disadvantages. You need to consider them carefully before you decide to do it or not. But if you have already decided to crack Zwcad 2011 English Professional 11, you may wonder how to do it safely and effectively. That's what we will show you next.</p>
62
- <h2>How to download Zwcad 2011 English Professional 11?</h2>
63
- <p>Before you can crack Zwcad 2011 English Professional 11, you need to download it first. There are two ways to download Zwcad 2011 English Professional 11: from the official website or from torrent sites.</p>
64
- <h3>How to download Zwcad 2011 English Professional 11 from the official website?</h3>
65
- <p>The official website of Zwcad is https://www.zwsoft.com/zwcad. You can visit this website and find the download link for Zwcad 2011 English Professional 11. You can choose the version and edition that suits your device and operating system. You can also choose the language that you prefer.</p>
66
- <p>After you click the download link, you will be asked to fill in a form with your name, email, phone number, country, and industry. This is required to get a free trial of Zwcad 2011 English Professional 11 for 30 days. You can also opt-in to receive newsletters and updates from the developer.</p>
67
- <p>After you submit the form, you will receive an email with the download link and the activation code for Zwcad 2011 English Professional 11. You can click the link and follow the instructions to download and install the software on your device. You can also enter the activation code to activate the trial version of the software.</p>
68
- <p>The trial version of Zwcad 2011 English Professional 11 will allow you to use all the features and functions of the software for 30 days. After that, you will need to buy a license or crack the software to continue using it.</p>
69
- <h3>How to download Zwcad 2011 English Professional 11 from torrent sites?</h3>
70
- <p>Torrent sites are websites that allow users to share and download files using peer-to-peer (P2P) networks. You can use torrent sites to download Zwcad 2011 English Professional 11 for free without filling in any forms or getting any activation codes. However, you need to be careful when using torrent sites as they may contain malware, viruses, or fake files.</p>
71
- <p>Some of the best torrent sites for downloading Zwcad 2011 English Professional 11 are:</p>
72
- <ul>
73
- <li>The Pirate Bay: https://thepiratebay.org/</li>
74
- <li>RARBG: https://rarbg.to/</li>
75
- <li>1337x: https://1337x.to/</li>
76
- <li>LimeTorrents: https://www.limetorrents.info/</li>
77
- <li>Torrentz2: https://torrentz2.eu/</li>
78
- </ul>
79
- <p>To use these torrent sites, you need to have a torrent client installed on your device. A torrent client is a software that allows you to download and upload files using P2P networks. Some of the best torrent clients are:</p>
80
- <ul>
81
- <li>uTorrent: https://www.utorrent.com/</li>
82
- <li>BitTorrent: https://www.bittorrent.com/</li>
83
- <li>qBittorrent: https://www.qbittorrent.org/</li>
84
- <li>Vuze: https://www.vuze.com/</li>
85
- <li>Deluge: https://deluge-torrent.org/</li>
86
- </ul>
87
- <p>After you have installed a torrent client on your device, you can visit any of the torrent sites and search for Zwcad 2011 English Professional 11. You will see a list of results with different file sizes, seeders, leechers, and comments. You can choose the one that has the most seeders, leechers, and positive comments.</p>
88
- <p>After you click on the result, you will see a magnet link or a torrent file that you can use to download Zwcad 2011 English Professional 11. You can copy the magnet link or download the torrent file and open it with your torrent client. Your torrent client will start downloading Zwcad 2011 English Professional 11 from other users who have it on their devices.</p>
89
- <p>The download speed and time will depend on your internet connection and the number of seeders and leechers. The more seeders and leechers there are, the faster and easier it will be to download Zwcad 2011 English Professional 11. After the download is complete, you can find Zwcad 2011 English Professional 11 in your device's folder.</p>
90
- <h2>How to crack Zwcad 2011 English Professional 11?</h2>
91
- <p>Now that you have downloaded Zwcad 2011 English Professional 11, you need to crack it to use it without a license or activation. Cracking Zwcad 2011 English Professional 11 is not a simple or easy task. You need to have some skills and knowledge in software cracking, as well as some tools and resources to help you. Here are the steps and tools for cracking Zwcad 2011 English Professional 11:</p>
92
- <h3>The steps for cracking Zwcad 2011 English Professional 11 are:</h3>
93
- <ol>
94
- <li>Install Zwcad 2011 English Professional 11 on your device. You can use the setup file that you downloaded from the official website or the torrent site. Follow the instructions to install the software on your device.</li>
95
- <li>Disconnect your device from the internet. You need to do this to prevent the software from connecting to the server and verifying your license or activation. You can turn off your Wi-Fi, unplug your Ethernet cable, or disable your network adapter.</li>
96
- <li>Run Zwcad 2011 English Professional 11 on your device. You will see a window that asks you to activate the software. You can choose to activate it online, offline, or later. Choose to activate it later and close the window.</li>
97
- <li>Open the folder where you installed Zwcad 2011 English Professional 11 on your device. You will see a file named "zwlm.exe". This is the file that controls the license and activation of the software. You need to replace this file with a cracked version of it.</li>
98
- <li>Download a cracked version of "zwlm.exe" from a reliable source. You can use a search engine or a torrent site to find a cracked version of "zwlm.exe" that matches the version and edition of Zwcad 2011 English Professional 11 that you have installed on your device. Make sure that the file is safe and clean from malware, viruses, or fake files.</li>
99
- <li>Copy and paste the cracked version of "zwlm.exe" into the folder where you installed Zwcad 2011 English Professional 11 on your device. You will be asked to overwrite or replace the original file. Choose to overwrite or replace it.</li>
100
- <li>Run Zwcad 2011 English Professional 11 on your device again. You will see a window that asks you to activate the software again. You can choose to activate it online, offline, or later. Choose to activate it offline and click "Next".</li>
101
- <li>You will see a window that shows you a serial number and a request code. You need to use these codes to generate an activation code for Zwcad 2011 English Professional 11.</li>
102
- <li>Download an activation code generator for Zwcad 2011 English Professional 11 from a reliable source. You can use a search engine or a torrent site to find an activation code generator for Zwcad 2011 English Professional 11 that matches the version and edition of Zwcad 2011 English Professional 11 that you have installed on your device. Make sure that the file is safe and clean from malware, viruses, or fake files.</li>
103
- <li>Run the activation code generator for Zwcad 2011 English Professional 11 on your device. You will see a window that asks you to enter the serial number and the request code that you got from Zwcad 2011 English Professional 11. Enter them and click "Generate".</li>
104
- <li>You will see a window that shows you an activation code for Zwcad 2011 English Professional 11. Copy this code and paste it into the window of Zwcad 2011 English Professional 11 that asks you for an activation code. Click "Next".</li>
105
- <li>You will see a window that confirms that you have successfully activated Zwcad 2011 English Professional 11. You can now use the software without any limitations or restrictions. Click "Finish" to close the window.</li>
106
- </ol>
107
- <p>Congratulations! You have successfully cracked Zwcad 2011 English Professional 11. You can now enjoy all the features and functions of the software for free. But how can you use Zwcad 2011 English Professional 11 after cracking it? Let's find out.</p>
108
- <h2>How to use Zwcad 2011 English Professional 11 after cracking it?</h2>
109
- <p>After cracking Zwcad 2011 English Professional 11, you can use it as you would normally use any CAD software. You can create, edit, and view 2D and 3D drawings with ease and efficiency. You can also export, import, and share your drawings with other users or applications.</p>
110
- <p>However, there are some tips and tricks that you should keep in mind when using Zwcad 2011 English Professional 11 after cracking it. These tips and tricks will help you avoid errors, problems, or issues that may arise from using the cracked version of the software. Here are some of them:</p>
111
- <h3>The tips and tricks for using Zwcad 2011 English Professional 11 after cracking it are:</h3>
112
- <ul>
113
- <li>Do not update the software. Updating the software may overwrite or delete the cracked files and cause the software to stop working or ask for a license or activation again. If you see any prompts or notifications to update the software, ignore them or disable them.</li>
114
- <li>Do not connect to the internet. Connecting to the internet may allow the software to communicate with the server and detect that you are using a cracked version of the software. This may result in errors, warnings, or blocks that may prevent you from using the software. If you need to connect to the internet for some reason, make sure that you block the software from accessing the internet by using a firewall or a VPN.</li>
115
- <li>Do not register or sign in to the software. Registering or signing in to the software may require you to provide your personal information or verify your license or activation. This may expose your identity or reveal that you are using a cracked version of the software. If you see any prompts or notifications to register or sign in to the software, ignore them or disable them.</li>
116
- <li>Do not contact the developer or customer service. Contacting the developer or customer service may require you to provide your serial number, request code, activation code, or other information that may indicate that you are using a cracked version of the software. This may result in legal consequences or loss of support and service. If you need help or support for Zwcad 2011 English Professional 11, use other sources such as online forums, blogs, videos, etc.</li>
117
- <li>Do not share your cracked files or codes with others. Sharing your cracked files or codes with others may put them at risk of malware, viruses, or hackers. It may also increase the chances of being caught by the developer or authorities. If you want to share Zwcad 2011 English Professional 11 with others, share the original files or codes that you downloaded from the official website or torrent sites.</li>
118
- </ul>
119
- <p>By following these tips and tricks, you can use Zwcad 2011 English Professional 11 after cracking it without any major problems or issues. However, you should always be careful and cautious when using any cracked software as they may still pose some risks and challenges that are beyond your control.</p>
120
- <h2>Conclusion</h2>
121
- <p>Zwcad 2011 English Professional 11 is a popular and powerful CAD software that allows you to create, edit, and view 2D and 3D drawings. It has many features and functions that make it a great choice for various industries and applications.</p>
122
- <p>However, Zwcad 2011 English Professional 11 is not a free software. You need to buy a license to use it without any limitations or restrictions. The license can cost from $799 to $1499 depending on the version and edition you choose.</p>
123
- <p>That's why some people look for ways to crack Zwcad 2011 English Professional 11. Cracking is a process of modifying or bypassing the security mechanisms of a software to make it work without a license or activation. By cracking Zwcad 2011 English Professional 11, you can use it for free without paying anything.</p>
124
- <p>But cracking Zwcad 2011 English Professional 11 is not a simple or easy task. You need to have some skills and knowledge in software cracking, as well as some tools and resources to help you. You also need to consider the benefits and risks of cracking Zwcad 2011 English Professional 11 before doing it. You also need to follow some tips and tricks to use Zwcad 2011 English Professional 11 after cracking it.</p>
125
- <p>In this article, we have shown you how to crack Zwcad 2011 English Professional 11 step by step. We have also given you some tips and tricks to use Zwcad 2011 English Professional 11 after cracking it. We hope that this article has been helpful and informative for you.</p>
126
- <p>However, we do not recommend or endorse cracking Zwcad 2011 English Professional 11 or any other software. Cracking is illegal and unethical and may cause more harm than good. You may damage your device or data, face legal consequences, or lose support and service. You may also miss out on the benefits and features of the official version of the software.</p>
127
- <p>Therefore, we suggest that you buy the official license of Zwcad 2011 English Professional 11 from the developer or use a free or open-source CAD software instead. This way, you can use the software legally and safely and enjoy its full potential and value.</p>
128
- <p>If you have any questions or comments about this article or Zwcad 2011 English Professional 11, feel free to leave them below. We would love to hear from you and help you out. Thank you for reading and have a great day!</p>
129
- <h2>FAQs</h2>
130
- <ul>
131
- <li>Q: Is cracking Zwcad 2011 English Professional 11 legal?</li>
132
- <li>A: No, cracking Zwcad 2011 English Professional 11 is illegal and violates the terms and conditions of the software license.</li>
133
- <li>Q: Is cracking Zwcad 2011 English Professional 11 safe?</li>
134
- <li>A: No, cracking Zwcad 2011 English Professional 11 is not safe and may expose your device to malware, viruses, or hackers.</li>
135
- <li>Q: Is cracking Zwcad 2011 English Professional 11 worth it?</li>
136
- <li>A: No, cracking Zwcad 2011 English Professional 11 is not worth it and may cause more harm than good. You may lose your data, damage your device, or face legal consequences.</li>
137
- <li>Q: What are the alternatives to cracking Zwcad 2011 English Professional 11?</li>
138
- <li>A: The alternatives to cracking Zwcad 2011 English Professional 11 are buying the official license, using a free or open-source CAD software, or using an online CAD service.</li>
139
- <li>Q: Where can I get help or support for Zwcad 2011 English Professional 11?</li>
140
- <li>A: You can get help or support for Zwcad 2011 English Professional 11 from the official website, the user manual, the online forum, or the customer service.</li>
141
- </ul></p> b2dd77e56b<br />
142
- <br />
143
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/2pac Still I Rise Zip LINK Download.md DELETED
@@ -1,126 +0,0 @@
1
- <br />
2
- <h1>2pac still i rise zip download: The Ultimate Guide to Downloading and Enjoying the Classic Album by 2Pac & Outlawz</h1>
3
-
4
- <p>Are you a fan of 2Pac, the legendary rapper who changed the game of hip hop with his music and message? Do you love Outlawz, the rap group that he formed with his loyal friends and collaborators? If so, you must have heard of their album Still I Rise, one of the best albums in rap history.</p>
5
-
6
- <p>Still I Rise is the third and final studio album by 2Pac and Outlawz, released in 1999 after 2Pac's death in 1996. It features 15 tracks that showcase the rap skills, political views, and personal struggles of both artists. The album was a huge success, reaching number one on the Billboard 200 and selling over three million copies in the US.</p>
7
- <h2>2pac still i rise zip download</h2><br /><p><b><b>Download</b> &#10002; &#10002; &#10002; <a href="https://imgfil.com/2uxZm5">https://imgfil.com/2uxZm5</a></b></p><br /><br />
8
-
9
- <p>But how can you listen to this masterpiece today? One of the easiest and most convenient ways is to download the zip file of Still I Rise from the internet. A zip file is a compressed file that contains multiple files or folders in one. By downloading the zip file of Still I Rise, you can get access to all the songs in the album in one go.</p>
10
-
11
- <h2>How to Find the Zip File of Still I Rise</h2>
12
-
13
- <p>There are many websites that offer free downloads of Still I Rise zip file. However, not all of them are reliable or safe. Some may contain viruses, malware, or spyware that can harm your computer or device. Others may have broken links, low-quality audio, or incomplete files.</p>
14
-
15
- <p>To avoid these problems, you should look for reputable and trustworthy websites that provide high-quality and virus-free downloads of Still I Rise zip file. Here are some of the best ones that we recommend:</p>
16
-
17
- <ul>
18
- <li><a href="https://archive.org/details/2pac-outlawz-still-i-rise">Internet Archive</a>: This is a non-profit digital library that offers free access to millions of books, movies, music, and more. You can find the zip file of Still I Rise by 2Pac & Outlawz here, along with other albums by 2Pac and other hip hop artists. You can also stream the songs online or download them individually.</li>
19
- <li><a href="https://eastnaija.com/2pac-outlawz-still-i-rise-album-zip-file/">EastNaija</a>: This is a website that provides free downloads of African music, videos, and news. You can find the zip file of Still I Rise by 2Pac & Outlawz here, along with other albums by 2Pac and other rap legends. You can also download each song separately or listen to them online.</li>
20
- <li><a href="https://archive.org/details/012PacOutlawzLetterToThePresidentfeat.BigSyke">Archive.org (retail version)</a>: This is another link from the Internet Archive that offers the retail version of Still I Rise by 2Pac & Outlawz. This version has some minor differences from the original version, such as different track order and mixing. You can download the zip file here or stream the songs online.</li>
21
- </ul>
22
-
23
- <h2>How to Download and Extract the Zip File of Still I Rise</h2>
24
-
25
- <p>Once you have found a reliable website that offers the zip file of Still I Rise by 2Pac & Outlawz, you can follow these simple steps to download and extract it:</p>
26
-
27
- <ol>
28
- <li>Click on the download link or button on the website.</li>
29
- <li>Choose a location on your computer or device where you want to save the zip file.</li>
30
- <li>Wait for the download to finish.</li>
31
- <li>Locate the zip file on your computer or device and right-click on it.</li>
32
- <li>Select "Extract All" or "Unzip" from the menu.</li>
33
- <li>Choose a destination folder where you want to extract the files.</li>
34
- <li>Wait for the extraction to finish.</li>
35
- <li>Open the destination folder and enjoy listening to Still I Rise by 2Pac & Outlawz!</li>
36
- </ol>
37
-
38
- <h2>Why You Should Listen to Still I Rise by 2Pac & Outlawz</h2>
39
-
40
- <p>Still I Rise by 2Pac & Outlawz is more than just an album. It is a testament to the legacy and impact of 2Pac, who was killed in 1996 at the age of 25. It is also a tribute to his friendship and collaboration with Outlawz, who continued his vision and mission after his death.</p>
41
-
42
- <p>The album features songs that cover various topics, such as social injustice, racism, violence, poverty, spirituality, love, loyalty, and hope. The songs are powerful, emotional, inspiring, and catchy. The lyrics are raw, honest, poetic, and provocative. The beats are hard-hitting, melodic, and diverse.</p>
43
-
44
- <p>Still I Rise by 2Pac & Outlawz is an album that every hip hop fan should listen to at least once in their lifetime. It is an album that showcases the talent, passion, and soul of two legendary rap groups. It is an album that will make you think, feel, and rise above your challenges.</p>
45
-
46
- <h3>Conclusion</h3>
47
-
48
- <p>If you are looking for a way to enjoy Still I Rise by 2Pac & Outlawz today, you can easily download the zip file of this album from various websites on the internet. However, you should be careful about choosing a reliable and safe website that offers high-quality and virus-free downloads. You can also extract the zip file easily using your computer or device's built-in software or a third-party tool.</p>
49
- <p></p>
50
-
51
- <p>Still I Rise by 2Pac & Outlawz is an album that deserves your attention and appreciation. It is an album that will make you appreciate the artistry and legacy of 2Pac and Outlawz. It is an album that will make you love hip hop music even more.</p>
52
-
53
- <p>So what are you waiting for? Download Still I Rise by 2Pac & Outlawz today and enjoy this masterpiece!</p>
54
- <h2>How to Listen to Still I Rise by 2Pac & Outlawz</h2>
55
-
56
- <p>After you have downloaded and extracted the zip file of Still I Rise by 2Pac & Outlawz, you can listen to the album in different ways. Here are some of the options that you have:</p>
57
-
58
- <ul>
59
- <li>Play the songs on your computer or device using your preferred media player. You can create a playlist of the songs or shuffle them randomly. You can also adjust the volume, bass, treble, and other settings to enhance your listening experience.</li>
60
- <li>Transfer the songs to your smartphone, tablet, iPod, or other portable devices using a USB cable or Bluetooth. You can then listen to the songs on the go using your headphones or speakers. You can also use apps like Spotify, Apple Music, or Google Play Music to sync the songs to your device.</li>
61
- <li>Burn the songs to a CD or DVD using a software like Nero, Roxio, or Windows Media Player. You can then play the CD or DVD on your home stereo system, car stereo system, or any other device that supports CD or DVD playback. You can also make copies of the CD or DVD and share them with your friends or family.</li>
62
- </ul>
63
-
64
- <h2>What You Can Learn from Still I Rise by 2Pac & Outlawz</h2>
65
-
66
- <p>Still I Rise by 2Pac & Outlawz is not just an album that you can listen to for entertainment. It is also an album that you can learn from for inspiration. Here are some of the things that you can learn from this album:</p>
67
-
68
- <ul>
69
- <li>You can learn about the history and culture of hip hop music and how it evolved over time. You can learn about the origins, influences, styles, and trends of hip hop music and how it reflects the social and political issues of different eras.</li>
70
- <li>You can learn about the life and legacy of 2Pac and how he became one of the most influential and respected rappers of all time. You can learn about his childhood, upbringing, education, career, achievements, controversies, death, and impact. You can also learn about his philosophy, vision, and message that he conveyed through his music.</li>
71
- <li>You can learn about Outlawz and how they carried on 2Pac's legacy after his death. You can learn about their background, formation, members, albums, songs, collaborations, challenges, and achievements. You can also learn about their loyalty, friendship, and dedication to 2Pac and his mission.</li>
72
- </ul>
73
-
74
- <h3>Conclusion</h3>
75
-
76
- <p>Still I Rise by 2Pac & Outlawz is an album that you should not miss if you are a fan of hip hop music. It is an album that will give you a glimpse into the genius and greatness of 2Pac and Outlawz. It is an album that will make you appreciate their music and message even more.</p>
77
-
78
- <p>If you want to listen to this album today, you can easily download the zip file of Still I Rise from various websites on the internet. You can also extract the zip file easily using your computer or device's built-in software or a third-party tool. You can then listen to the album in different ways depending on your preference and convenience.</p>
79
-
80
- <p>Still I Rise by 2Pac & Outlawz is an album that will enrich your mind and soul with its powerful and inspiring songs. It is an album that will make you think, feel, and rise above your challenges.</p>
81
-
82
- <p>So what are you waiting for? Download Still I Rise by 2Pac & Outlawz today and enjoy this masterpiece!</p>
83
- <h2>How to Share Still I Rise by 2Pac & Outlawz with Others</h2>
84
-
85
- <p>If you love Still I Rise by 2Pac & Outlawz, you may want to share it with others who may appreciate it as well. There are many ways that you can share this album with your friends, family, or other hip hop fans. Here are some of the options that you have:</p>
86
-
87
- <ul>
88
- <li>Upload the songs to your social media platforms, such as Facebook, Instagram, Twitter, or YouTube. You can also tag or mention 2Pac and Outlawz in your posts or comments. You can also use hashtags like #StillIRise, #2Pac, #Outlawz, or #HipHop to reach more people who may be interested in this album.</li>
89
- <li>Create a blog or a website where you can write about Still I Rise by 2Pac & Outlawz and share your thoughts and opinions on the album. You can also include links to the websites where you downloaded the zip file of the album or where you can stream the songs online. You can also invite others to comment on your blog or website and engage in discussions about the album.</li>
90
- <li>Make a podcast or a video where you can talk about Still I Rise by 2Pac & Outlawz and review the album. You can also play some of the songs or snippets from the album and analyze them. You can also invite guests or co-hosts who are also fans of 2Pac and Outlawz or who are experts on hip hop music. You can then upload your podcast or video to platforms like Spotify, Apple Podcasts, SoundCloud, YouTube, or Vimeo.</li>
91
- </ul>
92
-
93
- <h2>How to Support Still I Rise by 2Pac & Outlawz</h2>
94
-
95
- <p>If you want to support Still I Rise by 2Pac & Outlawz and show your appreciation for their music and message, there are many ways that you can do so. Here are some of the ways that you can support this album and its artists:</p>
96
-
97
- <ul>
98
- <li>Buy the physical copy of Still I Rise by 2Pac & Outlawz from online stores like Amazon, eBay, or Discogs. You can also buy the digital copy of the album from platforms like iTunes, Google Play Music, or Bandcamp. By buying the album, you can support the artists financially and help them continue their work.</li>
99
- <li>Donate to charities or causes that 2Pac and Outlawz supported or were involved in. Some of these include The Tupac Amaru Shakur Foundation, The Tupac Amaru Shakur Center for the Arts, The Makaveli Branded Clothing Line, The Outlaw Foundation, The Thug Life Army Foundation, The Mutulu Shakur Family Fund, and The Malcolm X Grassroots Movement. By donating to these charities or causes, you can support the vision and mission of 2Pac and Outlawz and help them make a positive impact on the world.</li>
100
- <li>Spread the word about Still I Rise by 2Pac & Outlawz and encourage others to listen to it. You can also write reviews or ratings for the album on platforms like Amazon, iTunes, Google Play Music, or Bandcamp. You can also join online forums or communities where you can discuss Still I Rise by 2Pac & Outlawz with other fans or hip hop enthusiasts. By spreading the word about this album, you can increase its popularity and recognition and help it reach more people.</li>
101
- </ul>
102
-
103
- <h3>Conclusion</h3>
104
-
105
- <p>Still I Rise by 2Pac & Outlawz is an album that you should not miss if you are a fan of hip hop music. It is an album that will give you a glimpse into the genius and greatness of 2Pac and Outlawz. It is an album that will make you appreciate their music and message even more.</p>
106
-
107
- <p>If you want to listen to this album today, you can easily download the zip file of Still I Rise from various websites on the internet. You can also extract the zip file easily using your computer or device's built-in software or a third-party tool. You can then listen to the album in different ways depending on your preference and convenience.</p>
108
-
109
- <p>If you love this album, you may also want to share it with others who may appreciate it as well. You can also support this album and its artists by buying their music, donating to their charities or causes, or spreading the word about their work.</p>
110
-
111
- <p>Still I Rise by 2Pac & Outlawz is an album that will enrich your mind and soul with its powerful and inspiring songs. It is an album that will make you think, feel, and rise above your challenges.</p>
112
-
113
- <p>So what are you waiting for? Download Still I Rise by 2Pac & Outlawz today and enjoy this masterpiece!</p>
114
- <h3>Conclusion</h3>
115
-
116
- <p>Still I Rise by 2Pac & Outlawz is an album that you should not miss if you are a fan of hip hop music. It is an album that will give you a glimpse into the genius and greatness of 2Pac and Outlawz. It is an album that will make you appreciate their music and message even more.</p>
117
-
118
- <p>If you want to listen to this album today, you can easily download the zip file of Still I Rise from various websites on the internet. You can also extract the zip file easily using your computer or device's built-in software or a third-party tool. You can then listen to the album in different ways depending on your preference and convenience.</p>
119
-
120
- <p>If you love this album, you may also want to share it with others who may appreciate it as well. You can also support this album and its artists by buying their music, donating to their charities or causes, or spreading the word about their work.</p>
121
-
122
- <p>Still I Rise by 2Pac & Outlawz is an album that will enrich your mind and soul with its powerful and inspiring songs. It is an album that will make you think, feel, and rise above your challenges.</p>
123
-
124
- <p>So what are you waiting for? Download Still I Rise by 2Pac & Outlawz today and enjoy this masterpiece!</p> 3cee63e6c2<br />
125
- <br />
126
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1pelhydcardo/ChatGPT-prompt-generator/Apocalyptohollywoodmoviehindidubbinghdmp4download.md DELETED
@@ -1,66 +0,0 @@
1
- ## apocalyptohollywoodmoviehindidubbinghdmp4download
2
-
3
-
4
-
5
-
6
-
7
- ![Apocalyptohollywoodmoviehindidubbinghdmp4download](https://1.bp.blogspot.com/_We7_bc6rARk/Sww1F-J3IxI/AAAAAAAAIBI/_cdn9uTjFtM/s1600/apocalypto.jpg)
8
-
9
-
10
-
11
-
12
-
13
- **LINK >>> [https://kneedacexbrew.blogspot.com/?d=2txjpm](https://kneedacexbrew.blogspot.com/?d=2txjpm)**
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- I'll try to create that. Here is what I came up with:
26
-
27
- # Apocalypto: A Hollywood Epic in Hindi Dubbing
28
-
29
-
30
-
31
- Apocalypto is a 2006 American epic historical film directed by Benjamín. It depicts the life and struggle of a young Mayan man who escapes from a brutal sacrifice and tries to save his family and people from a ruthless invading force. The film is set in pre-Columbian Central America and features a cast of mostly indigenous actors speaking in Yucatec Maya.
32
-
33
-
34
-
35
- The film was praised for its cinematography, action sequences, and cultural authenticity, but also criticized for its violence, historical inaccuracies, and portrayal of indigenous people. Apocalypto was nominated for three Academy Awards and won three Golden Globe Awards.
36
-
37
-
38
-
39
- Apocalypto was dubbed in Hindi and released in India in 2007. The Hindi dubbing was done by professional voice actors who tried to match the tone and emotion of the original actors. The Hindi dubbing also added some dialogues and explanations to make the film more accessible and understandable for the Indian audience.
40
-
41
-
42
-
43
- If you are looking for a thrilling and adventurous film that transports you to a different time and place, you can download Apocalypto in Hindi dubbing in HD mp4 format from various online sources. However, be warned that the film contains graphic scenes of violence and gore that may not be suitable for everyone.
44
-
45
-
46
-
47
- Apocalypto is a film that will keep you on the edge of your seat and make you appreciate the beauty and diversity of human cultures. Watch it today and experience the epic journey of a hero who fights for his survival and freedom.
48
-
49
- I'll try to continue the article. Here is what I came up with:
50
-
51
- Apocalypto is not only a thrilling and adventurous film, but also a visually stunning and culturally authentic one. The film was shot entirely on location in the jungles of Mexico, using natural lighting and real sets. The film also features a cast of mostly non-professional actors who belong to various indigenous groups of Mexico and Central America, such as the Maya, the Yucatec, the Nahuatl, and the Mixtec. The actors learned to speak in Yucatec Maya, the language of the ancient Maya civilization, with the help of linguists and coaches. The film also consulted with experts and scholars on various aspects of Maya culture, such as costumes, rituals, architecture, astronomy, and art.
52
-
53
-
54
-
55
- The film received mostly positive reviews from critics and audiences alike, who praised its cinematography, action sequences, and cultural authenticity. However, some critics also pointed out some historical inaccuracies and anachronisms in the film, such as the depiction of human sacrifice, which was more common among the Aztecs than the Maya; the arrival of the Spanish conquistadors, which happened centuries after the collapse of the Maya civilization; and the portrayal of the Maya as a savage and decadent people, which ignored their achievements in science, mathematics, writing, and art. Some critics also accused Gibson of being too violent and sensationalist in his depiction of indigenous cultures.
56
-
57
-
58
-
59
- Despite these controversies, Apocalypto remains a powerful and unique film that offers a glimpse into a fascinating and mysterious world that has been largely forgotten or misunderstood by modern society. It is a film that challenges us to reflect on our own civilization and its values, as well as to appreciate the beauty and diversity of human cultures. Apocalypto is a film that deserves to be seen and experienced by anyone who loves cinema.
60
-
61
- dfd1c89656
62
-
63
-
64
-
65
-
66
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Bar Bar Live A New Generation of Live Entertainment and Social Networking.md DELETED
@@ -1,127 +0,0 @@
1
- <br />
2
- <h1>How to Download Bar Bar Live, a Popular Live Streaming App from China</h1>
3
- <p>Do you love watching live streams of your favorite celebrities, influencers, or ordinary people? Do you want to chat with them, send them gifts, or even join them on screen? If you answered yes, then you should download bar bar live, a popular live streaming app from China that lets you do all that and more.</p>
4
- <p>In this article, we will tell you what is bar bar live, why you should download it, how to download it, how to use it, and some tips and tricks to make the most out of it. By the end of this article, you will be ready to enjoy hours of fun and entertainment on this amazing app.</p>
5
- <h2>download bar bar live</h2><br /><p><b><b>Download Zip</b> &#10003;&#10003;&#10003; <a href="https://jinyurl.com/2uNNN4">https://jinyurl.com/2uNNN4</a></b></p><br /><br />
6
- <h2>What is Bar Bar Live?</h2>
7
- <p>Bar bar live is a live streaming app that allows you to watch and interact with thousands of hosts from China and other countries. You can watch them perform various activities such as singing, dancing, gaming, cooking, traveling, or just chatting. You can also chat with them using text, voice, or video messages. You can send them virtual gifts such as flowers, hearts, or diamonds to show your appreciation. You can even join them on screen if they invite you or if you pay a certain amount of coins.</p>
8
- <p>Bar bar live is not just a live streaming app. It is also a social networking app that allows you to make new friends from all over the world. You can follow your favorite hosts and other users, send them private messages, or join their fan clubs. You can also create your own profile, upload photos and videos, and share your thoughts and feelings with others.</p>
9
- <p>download bar bar live app for android<br />
10
- download bar bar live apk mod<br />
11
- download bar bar live streaming no sensor<br />
12
- download bar bar live vietnam<br />
13
- download bar bar live russia<br />
14
- download bar bar live korea<br />
15
- download bar bar live thailand<br />
16
- download bar bar live indonesia<br />
17
- download bar bar live amerika<br />
18
- download beyond all reason rts game<br />
19
- download beyond all reason rts launcher<br />
20
- download beyond all reason rts windows installer<br />
21
- download beyond all reason rts linux appimage<br />
22
- download beyond all reason rts linux flatpak<br />
23
- download beyond all reason rts maps and replays<br />
24
- how to play beyond all reason rts<br />
25
- how to install beyond all reason rts<br />
26
- how to join beyond all reason rts discord<br />
27
- how to donate to beyond all reason rts<br />
28
- how to get help with beyond all reason rts<br />
29
- cara download aplikasi live bar bar<br />
30
- cara download apk live bar bar mod<br />
31
- cara download live streaming bar bar tanpa sensor<br />
32
- cara download live bar bar vietnam<br />
33
- cara download live bar bar rusia<br />
34
- cara download live bar bar korea<br />
35
- cara download live bar bar thailand<br />
36
- cara download live bar bar indonesia<br />
37
- cara download live bar bar amerika<br />
38
- link download aplikasi live bar bar terbaru 2023<br />
39
- link download apk live bar bar bebas parah 2023<br />
40
- link download live streaming bar bar no sensor 2023<br />
41
- link download live bar bar vietnam terbaru 2023<br />
42
- link download live bar bar rusia terbaru 2023<br />
43
- link download live bar bar korea terbaru 2023<br />
44
- link download live bar bar thailand terbaru 2023<br />
45
- link download live bar bar indonesia terbaru 2023<br />
46
- link download live bar bar amerika terbaru 2023</p>
47
- <p>Bar bar live is one of the most popular live streaming apps in China. It has over 100 million users and more than 10 million active hosts. It is also available in other countries such as Indonesia, Thailand, Vietnam, India, and more. It supports multiple languages such as English, Chinese, Indonesian, Thai, Vietnamese, Hindi, and more.</p>
48
- <h2>Why You Should Download Bar Bar Live?</h2>
49
- <p>There are many reasons why you should download bar bar live. Here are some of them:</p>
50
- <ul>
51
- <li>You can watch live streams of various topics and genres anytime and anywhere. You can find something that interests you or suits your mood.</li>
52
- <li>You can interact with hosts and other users in real time. You can chat with them, send them gifts, or join them on screen. You can also make new friends from different backgrounds and cultures.</li>
53
- <li>You can earn money on the app by becoming a host yourself. You can showcase your talents, attract fans, and receive gifts from them. You can also participate in various events and competitions to win prizes and rewards.</li>
54
- <li>You can enjoy high-quality video and audio on the app. You can also adjust the resolution and volume according to your network and device.</li>
55
- <li>You can customize your app settings and preferences. You can choose your preferred language, theme, notification, and privacy options.</li>
56
- </ul>
57
- <p>As you can see, bar bar live is a live streaming app that offers you a lot of fun and benefits. You can watch, chat, gift, join, and earn on the app. You can also socialize, learn, and grow on the app. So what are you waiting for? Download bar bar live now and start your live streaming journey.</p>
58
- <h2>How to Download Bar Bar Live?</h2>
59
- <p>Downloading bar bar live is easy and fast. You can download it on your Android, iOS, or PC device. Here are the steps to download bar bar live on each device:</p>
60
- <h3>Download Bar Bar Live for Android</h3>
61
- <p>If you have an Android device, you can download bar bar live from Google Play Store or from an APK file. Here are the steps for both methods:</p>
62
- <ol>
63
- <li>From Google Play Store: Open Google Play Store on your device and search for "bar bar live". Tap on the app icon and then tap on "Install". Wait for the app to download and install on your device. Once done, you can open the app and start using it.</li>
64
- <li>From APK file: If you cannot access Google Play Store or prefer to download the app from an external source, you can use an APK file. An APK file is a package file that contains the app's installation files. You can download the APK file from a trusted website such as <a href="">APKPure</a> or <a href="">APKMirror</a>. Once you have downloaded the APK file, you need to enable "Unknown Sources" on your device settings to allow installation from external sources. Then, you need to locate the APK file on your device storage and tap on it to install it. Once done, you can open the app and start using it.</li>
65
- </ol>
66
- <h3>Download Bar Bar Live for iOS</h3>
67
- <p>If you have an iOS device, you can download bar bar live from App Store or from an IPA file. Here are the steps for both methods:</p>
68
- <ol>
69
- <li>From App Store: Open App Store on your device and search for "bar bar live". Tap on the app icon and then tap on "Get". Wait for the app to download and install on your device. Once done, you can open the app and start using it.</li>
70
- <li>From IPA file: If you cannot access App Store or prefer to download the app from an external source, you can use an IPA file. An IPA file is a package file that contains the app's installation files. You can download the IPA file from a trusted website such as <a href="">iOS Ninja</a> or <a href="">AppCake</a>. Once you have downloaded the IPA file, you need to use a third-party tool such as <a href="">Cydia Impactor</a> or <a href="">AltStore</a> to install it on your device. You may need to enter your Apple ID and password during the installation process. Once done, you can open the app and start using it.</li>
71
- </ol>
72
- <h3>Download Bar Bar Live for PC</h3>
73
- <p>If you have a PC device, you can download bar bar live using an emulator or a web browser. Here are the steps for both methods:</p>
74
- <ol>
75
- <li>Using an emulator: An emulator is a software that allows you to run Android apps on your PC device. You can use an emulator such as <a href="">BlueStacks</a>, <a href="">NoxPlayer</a>, or <a href="">MEmu</a> to download and install bar bar live on your PC device. You need to download and install the emulator on your PC device first. Then, you need to open the emulator and access Google Play Store or APK file from within it. Follow the same steps as mentioned above for Android devices to download and install bar bar live on your PC device.</li>
76
- <li>Using a web browser: If you do not want to use an emulator, you can use a web browser to access bar bar live on your PC device. You need to visit the official website of bar bar live at <a href="">www.barbar.live</a>. Then, you need to scan the QR code displayed on the website using your mobile device's camera. This will link your mobile device's account with your PC device's browser. You can then watch and interact with live streams on your PC device's browser.</li>
77
- </ol>
78
- <h2>How to Use Bar Bar Live?</h2>
79
- <p>Using bar bar live is simple and fun. You can create an account, watch live streams, chat with hosts, and send gifts on the app. Here is a brief tutorial on how to use bar bar live:</p>
80
- <ol>
81
- <li>Create an account: To use bar bar live, you need to create an account first. You can do this by using your phone number, email address, or social media account such as Facebook, Twitter, or Google. You need to enter your nickname, gender, birthday, and profile picture. You can also choose your preferred language and currency. You will receive a verification code or link to confirm your account.</li>
82
- <li>Watch live streams: To watch live streams, you can browse the homepage, explore the categories, or search for specific keywords. You can also use filters to sort the live streams by popularity, region, or time. You can tap on any live stream thumbnail to enter the live room. You can see the host's name, avatar, fan count, and gift count on the top of the screen. You can also see the chat messages, gift messages, and join requests on the bottom of the screen.</li>
83
- <li>Chat with hosts: To chat with hosts, you can use the chat box on the bottom of the screen. You can type text messages or send voice messages to the host. You can also use emojis, stickers, or GIFs to express yourself. You can also send video messages to the host if they enable the video chat feature. You can also request to join the host on screen if they allow it or if you pay a certain amount of coins.</li>
84
- <li>Send gifts: To send gifts to hosts, you can use the gift icon on the bottom of the screen. You can choose from various virtual gifts such as flowers, hearts, diamonds, cars, or planes. Each gift has a different value and effect. You need to have enough coins to send gifts. You can buy coins using real money or earn coins by completing tasks or watching ads. Sending gifts will increase your level and rank on the app. It will also make the host happy and grateful.</li>
85
- </ol>
86
- <h2>Tips and Tricks for Bar Bar Live</h2>
87
- <p>To enhance your experience on bar bar live, here are some tips and tricks that you should know:</p>
88
- <h3>How to Find Interesting Live Streams?</h3>
89
- <p>To find interesting live streams that suit your preferences, you can use these methods:</p>
90
- <ul>
91
- <li>Use filters: You can use filters to narrow down your search results by popularity, region, or time. You can also use advanced filters to select specific genres, languages, ages, genders, or tags.</li>
92
- <li>Use categories: You can use categories to browse live streams by different topics such as music, dance, game, food, travel, or talk. You can also see the subcategories and recommendations within each category.</li>
93
- <li>Use recommendations: You can use recommendations to discover new and popular live streams based on your viewing history and preferences. You can see the recommendations on the homepage or on the sidebar of each category.</li>
94
- </ul>
95
- <h3>How to Interact with Hosts and Other Users?</h3>
96
- <p>To interact with hosts and other users in a friendly and respectful way, you can use these methods:</p>
97
- <ul>
98
- <li>Use chat: You can use chat to communicate with hosts and other users using text, voice, or video messages. You can also use emojis , stickers, or GIFs to express yourself. You can also use @ to mention someone or # to join a topic.</li>
99
- <li>Use voice: You can use voice to talk to hosts and other users using the microphone icon on the chat box. You can also use the voice changer feature to change your voice tone and effect.</li>
100
- <li>Use video: You can use video to see hosts and other users using the camera icon on the chat box. You can also use the beauty filter feature to enhance your appearance and the face swap feature to change your face with someone else's.</li>
101
- <li>Use gifts: You can use gifts to show your appreciation and support to hosts and other users using the gift icon on the chat box. You can also use the lucky draw feature to win random gifts or the gift ranking feature to see who sent the most gifts.</li>
102
- <li>Use join: You can use join to go on screen with hosts and other users using the join icon on the chat box. You can also use the PK feature to challenge another host or user to a live duel or the party feature to join a group chat with multiple hosts or users.</li>
103
- </ul>
104
- <h3>How to Earn Money on Bar Bar Live?</h3>
105
- <p>To earn money on bar bar live, you can become a host yourself and attract fans and receive gifts from them. Here are some tips on how to do that:</p>
106
- <ul>
107
- <li>Create an attractive profile: You should create an attractive profile that showcases your personality, interests, and talents. You should upload a clear and appealing profile picture, write a catchy and informative bio, and choose a unique and memorable nickname.</li>
108
- <li>Choose a suitable category: You should choose a suitable category that matches your content and style. You should also choose a subcategory and tags that describe your live stream topic and genre.</li>
109
- <li>Prepare your equipment: You should prepare your equipment such as your phone, camera, microphone, lighting, and background. You should make sure that your equipment is working properly and that your video and audio quality are high.</li>
110
- <li>Schedule your live stream: You should schedule your live stream in advance and announce it to your fans and followers. You should also choose a time slot that is convenient for you and your audience.</li>
111
- <li>Engage your audience: You should engage your audience during your live stream by greeting them, answering their questions, responding to their comments, thanking them for their gifts, inviting them to join you on screen, playing games with them, or performing for them.</li>
112
- <li>Promote yourself: You should promote yourself on other platforms such as social media, blogs, or forums. You should also collaborate with other hosts or users to cross-promote each other. You should also participate in various events and competitions on the app to gain more exposure and recognition.</li>
113
- </ul>
114
- <h2>Conclusion</h2>
115
- <p>Bar bar live is a live streaming app that allows you to watch and interact with thousands of hosts from China and other countries. You can also become a host yourself and earn money on the app. Bar bar live is easy to download and use on your Android, iOS, or PC device. Bar bar live is also fun and rewarding to watch and chat with hosts and other users. Bar bar live is one of the best live streaming apps in China and in the world.</p>
116
- <p>If you are looking for a live streaming app that offers you entertainment, socialization, and income, you should download bar bar live today. You will not regret it.</p>
117
- <h2>FAQs</h2>
118
- <p>Here are some frequently asked questions and answers about bar bar live:</p>
119
- <ol>
120
- <li>Q: Is bar bar live safe and legal?<br>A: Yes, bar bar live is safe and legal. It has strict policies and regulations to protect the privacy and security of its users and hosts. It also complies with the laws and regulations of each country where it operates.</li>
121
- <li>Q: How much does it cost to use bar bar live?<br>A: Bar bar live is free to download and use. However, you may need to pay for some features such as sending gifts, joining hosts on screen, or accessing premium content. You can buy coins using real money or earn coins by completing tasks or watching ads.</li>
122
- <li>Q: How can I contact bar bar live customer service?<br>A: You can contact bar bar live customer service by using the feedback feature on the app settings or by sending an email to <a href="">[email protected]</a>. You can also visit their official website at <a href="">www.barbar.live</a> for more information.</li>
123
- <li>Q: How can I delete my bar bar live account?<br>A: You can delete your bar bar live account by using the delete account feature on the app settings or by contacting customer service. However, once you delete your account, you will lose all your data, coins, gifts, fans, and hosts. You will also not be able to create a new account with the same phone number, email address, or social media account.</li>
124
- <li>Q: How can I update bar bar live to the latest version?<br>A: You can update bar bar live to the latest version by using the update feature on the app settings or by visiting Google Play Store, App Store, or the official website. You should always update your app to enjoy the latest features and improvements.</li>
125
- </ol></p> 401be4b1e0<br />
126
- <br />
127
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/CarX Street A Realistic and Immersive Street Racing Simulator for Android.md DELETED
@@ -1,127 +0,0 @@
1
- <br />
2
- <h1>CarX Street News APK: Everything You Need to Know</h1>
3
- <p>If you are a fan of car racing games, you might have heard of CarX Street, a realistic and immersive game that lets you customize and drive your own cars on various tracks and locations. But did you know that there is an app that can keep you updated on everything related to CarX Street? It's called CarX Street News APK, and it's a must-have for any CarX Street enthusiast. In this article, we will tell you everything you need to know about CarX Street News APK, including what it is, how to download and install it, how to use it, and some FAQs.</p>
4
- <h2>What is CarX Street News APK?</h2>
5
- <h3>A brief introduction to CarX Street News APK</h3>
6
- <p>CarX Street News APK is an entertainment app developed by Alcides Games, a fan of CarX Street. The app was released in December 2022, and it has been downloaded over 50,000 times since then . The app is not affiliated with or endorsed by the official developers of CarX Street, but it provides useful and interesting information about the game, such as news, updates, tips, videos, screenshots, wallpapers, and more. The app also allows you to interact with other fans of CarX Street through comments and ratings.</p>
7
- <h2>carx street news apk</h2><br /><p><b><b>Download Zip</b> ->>->>->> <a href="https://jinyurl.com/2uNOW8">https://jinyurl.com/2uNOW8</a></b></p><br /><br />
8
- <h3>The features and benefits of CarX Street News APK</h3>
9
- <p>CarX Street News APK has many features and benefits that make it a great app for any CarX Street fan. Some of them are:</p>
10
- <ul>
11
- <li>It keeps you informed about the latest developments and events in CarX Street, such as new cars, tracks, modes, features, etc.</li>
12
- <li>It gives you access to exclusive content that you won't find anywhere else, such as behind-the-scenes videos, interviews with the developers, sneak peeks of upcoming updates, etc.</li>
13
- <li>It helps you improve your skills and performance in CarX Street by providing you with tips, tricks, guides, tutorials, reviews, etc.</li>
14
- <li>It lets you customize your device with amazing wallpapers and ringtones inspired by CarX Street.</li>
15
- <li>It enables you to share your opinions and feedback with other fans of CarX Street through comments and ratings.</li>
16
- <li>It has a simple and user-friendly interface that makes it easy to navigate and use.</li>
17
- <li>It is free to download and use, and it does not require any registration or subscription.</li>
18
- </ul>
19
- <h2>How to download and install CarX Street News APK?</h2>
20
- <h3>The steps to download and install CarX Street News APK on your Android device</h3>
21
- <p>If you want to download and install CarX Street News APK on your Android device, you can follow these steps:</p>
22
- <ol>
23
- <li>Go to the official website of the app at [CarxStreet](^1^) or [AppBrain](^2^) and click on the download button.</li>
24
- <li>Wait for the download to finish and then open the downloaded file.</li>
25
- <li>If you see a message that says "For your security, your phone is not allowed to install unknown apps from this source", tap on "Settings" and then enable the option "Allow from this source".</li>
26
- <li>Go back to the installation screen and tap on "Install".</li>
27
- <li>Wait for the installation to complete and then tap on "Open".</li>
28
- <li>Enjoy using CarX Street News APK on your Android device.</li>
29
- </ol>
30
- <h3>The precautions and requirements for installing CarX Street News APK</h3>
31
- <p>Before you install CarX Street News APK on your Android device, you should take some precautions and meet some requirements to ensure a smooth and safe installation. Some of them are:</p>
32
- <ul>
33
- <li>You should have enough storage space on your device to download and install the app. The app size is about 15 MB, but it may vary depending on your device and version.</li>
34
- <li>You should have a stable internet connection to download the app and access its content.</li>
35
- <li>You should have an Android device that runs on Android 4.4 or higher, as the app may not work properly on lower versions.</li>
36
- <li>You should enable the option "Unknown sources" or "Allow from this source" on your device settings, as the app is not available on the Google Play Store and you need to install it from a third-party source.</li>
37
- <li>You should scan the app with a reliable antivirus or malware scanner before installing it, as some sources may contain malicious or harmful files.</li>
38
- <li>You should read and agree to the app's terms and conditions and privacy policy before using it, as the app may collect and use some of your data for its functions and services.</li>
39
- </ul>
40
- <h2>How to use CarX Street News APK?</h2>
41
- <h3>The main functions and options of CarX Street News APK</h3>
42
- <p>Once you have installed CarX Street News APK on your Android device, you can start using it to enjoy its features and benefits. The app has a simple and user-friendly interface that makes it easy to navigate and use. The app has four main tabs at the bottom of the screen: Home, Videos, Wallpapers, and More. Here is what you can do with each tab:</p>
43
- <table>
44
- <tr><th>Tab</th><th>Function</th></tr>
45
- <tr><td>Home</td><td>This is where you can find the latest news, updates, tips, guides, reviews, and more about CarX Street. You can scroll down to see more articles, or swipe left or right to see different categories. You can also tap on any article to read it in full, or tap on the share button to share it with your friends. You can also leave a comment or a rating on any article, or tap on the bookmark button to save it for later.</td></tr>
46
- <tr><td>Videos</td><td>This is where you can watch amazing videos related to CarX Street, such as gameplay, trailers, teasers, interviews, behind-the-scenes, etc. You can scroll down to see more videos, or swipe left or right to see different categories. You can also tap on any video to watch it in full screen, or tap on the share button to share it with your friends. You can also leave a comment or a rating on any video, or tap on the bookmark button to save it for later.</td></tr>
47
- <tr><td>Wallpapers</td><td>This is where you can find stunning wallpapers inspired by CarX Street, such as cars, tracks, logos, etc. You can scroll down to see more wallpapers, or swipe left or right to see different categories. You can also tap on any wallpaper to see it in full screen, or tap on the download button to save it on your device. You can also set any wallpaper as your home screen or lock screen background.</td></tr>
48
- <tr><td>More</td><td>This is where you can access more options and settings of the app, such as feedback, rate us, privacy policy, terms and conditions, etc. You can also check for updates, clear cache, or contact us from this tab.</td></tr>
49
- </table>
50
- <h3>The tips and tricks to get the most out of CarX Street News APK</h3>
51
- <p>To make sure that you get the most out of CarX Street News APK, here are some tips and tricks that you can follow:</p>
52
- <ul>
53
- <li>Check the app regularly for new content and updates, as the app is constantly updated with fresh and relevant information about CarX Street.</li>
54
- <li>Enable notifications for the app, so that you don't miss any important news or updates about CarX Street.</li>
55
- <li>Share your feedback and suggestions with us through the feedback option in the More tab, as we value your opinion and we want to improve our app based on your needs and preferences.</li> <li>Rate and review our app on the Google Play Store or the App Store, as it helps us to reach more people and grow our community.</li>
56
- <li>Invite your friends and family to download and use our app, as it makes it more fun and enjoyable to share your passion for CarX Street with others.</li>
57
- <li>Follow us on our social media platforms, such as Facebook, Twitter, Instagram, YouTube, etc., as we post more content and updates there.</li>
58
- </ul>
59
- <h2>Conclusion</h2>
60
- <p>CarX Street News APK is an amazing app that every CarX Street fan should have on their Android device. It keeps you updated on everything related to CarX Street, such as news, updates, tips, videos, wallpapers, and more. It also lets you interact with other fans of CarX Street through comments and ratings. It has a simple and user-friendly interface that makes it easy to navigate and use. It is free to download and use, and it does not require any registration or subscription. If you love CarX Street, you will love CarX Street News APK. So what are you waiting for? Download CarX Street News APK today and enjoy the ultimate CarX Street experience.</p>
61
- <h2>FAQs</h2>
62
- <h3>Q1: Is CarX Street News APK safe and legal?</h3>
63
- <p>A1: Yes, CarX Street News APK is safe and legal to use. The app does not contain any viruses, malware, or spyware that can harm your device or data. The app also does not violate any laws or regulations that govern the use of apps or games. However, you should always download and install the app from a trusted source, such as the official website of the app or the App Store.</p>
64
- <h3>Q2: What are the advantages of using CarX Street News APK over other apps?</h3>
65
- <p>A2: Some of the advantages of using CarX Street News APK over other apps are:</p>
66
- <p>carx street news apk download<br />
67
- carx street news apk mod<br />
68
- carx street news apk latest version<br />
69
- carx street news apk free<br />
70
- carx street news apk android<br />
71
- carx street news apk obb<br />
72
- carx street news apk offline<br />
73
- carx street news apk hack<br />
74
- carx street news apk update<br />
75
- carx street news apk full<br />
76
- carx street news app review<br />
77
- carx street news app gameplay<br />
78
- carx street news app features<br />
79
- carx street news app tips<br />
80
- carx street news app guide<br />
81
- carx street news app cheats<br />
82
- carx street news app tricks<br />
83
- carx street news app support<br />
84
- carx street news app rating<br />
85
- carx street news app feedback<br />
86
- carx street game news<br />
87
- carx street game release date<br />
88
- carx street game download<br />
89
- carx street game trailer<br />
90
- carx street game beta<br />
91
- carx street game online<br />
92
- carx street game pc<br />
93
- carx street game ios<br />
94
- carx street game system requirements<br />
95
- carx street game cars list<br />
96
- how to play carx street news apk<br />
97
- how to install carx street news apk<br />
98
- how to update carx street news apk<br />
99
- how to uninstall carx street news apk<br />
100
- how to hack carx street news apk<br />
101
- how to get free coins in carx street news apk<br />
102
- how to unlock all cars in carx street news apk<br />
103
- how to customize cars in carx street news apk<br />
104
- how to drift in carx street news apk<br />
105
- how to race in carx street news apk</p>
106
- <ul>
107
- <li>It provides you with exclusive and comprehensive information about CarX Street that you won't find anywhere else.</li>
108
- <li>It helps you improve your skills and performance in CarX Street by providing you with tips, tricks, guides, tutorials, reviews, etc.</li>
109
- <li>It lets you customize your device with amazing wallpapers and ringtones inspired by CarX Street.</li>
110
- <li>It enables you to share your opinions and feedback with other fans of CarX Street through comments and ratings.</li>
111
- <li>It has a simple and user-friendly interface that makes it easy to navigate and use.</li>
112
- <li>It is free to download and use, and it does not require any registration or subscription.</li>
113
- </ul>
114
- <h3>Q3: How often is CarX Street News APK updated?</h3>
115
- <p>A3: CarX Street News APK is updated regularly with fresh and relevant content and features. The app is updated whenever there is a new development or event in CarX Street, such as a new car, track, mode, feature, etc. The app is also updated to fix any bugs or errors that may occur. You can check for updates in the More tab of the app, or enable notifications for the app to get notified when there is an update available.</p>
116
- <h3>Q4: Can I use CarX Street News APK on other devices besides Android?</h3>
117
- <p>A4: Unfortunately, no. CarX Street News APK is only compatible with Android devices that run on Android 4.4 or higher. The app is not available for iOS devices or Windows devices. However, you can still access some of the content of the app on other devices by visiting the official website of the app at [CarxStreet] or [AppBrain].</p>
118
- <h3>Q5: Where can I find more information and support for CarX Street News APK?</h3>
119
- <p>A5: If you have any questions or issues regarding CarX Street News APK, you can find more information and support from the following sources:</p>
120
- <ul>
121
- <li>The official website of the app at [CarxStreet] or [AppBrain], where you can find more details about the app, such as its features, benefits, screenshots, etc.</li>
122
- <li>The feedback option in the More tab of the app, where you can send us your feedback and suggestions for improving our app.</li>
123
- <li>The contact us option in the More tab of the app, where you can email us your queries or problems regarding our app.</li>
124
- <li>The social media platforms of the app, such as Facebook, Twitter, Instagram, YouTube, etc., where you can follow us for more content and updates about our app.</li>
125
- </ul></p> 401be4b1e0<br />
126
- <br />
127
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Cover Fire 3D Offline Shooting Game Mod APK Experience the Best of Shooting Games with Unlimited Money and More.md DELETED
@@ -1,95 +0,0 @@
1
- <br />
2
- <h1>Cover Fire 3D Offline Shooting Game Mod APK: A Review</h1>
3
- <p>If you are looking for a fun and exciting shooting game that you can play on your mobile device, then you should check out Cover Fire 3D Offline Shooting Game. This game is one of the best shooting games you'll ever play on a mobile, now for free and offline. You can enjoy realistic 3D graphics, easy controls, and various offline missions. You can also compete online with other players in sniper tournaments and war events. But what if you want to get more out of this game? What if you want to have unlimited money, coins, weapons, and upgrades? Well, that's where Cover Fire 3D Offline Shooting Game Mod APK comes in. In this article, we will review what this game is, what the mod apk is, and how to download and install it on your device.</p>
4
- <h2>What is Cover Fire 3D Offline Shooting Game?</h2>
5
- <p>Cover Fire 3D Offline Shooting Game is an action shooter game developed by Genera Games. It has over 100 million downloads on Google Play Store and a rating of 4.5 out of 5 stars. The game has a thrilling story mode with 12 chapters, where you have to battle in army missions, sniper ops, vehicle driving, helicopter shooting, and more. You can also play online in competitive sniper shooting battles and cool war events, such as Zombies Survival or Black Ops.</p>
6
- <h2>cover fire 3d offline shooting game mod apk</h2><br /><p><b><b>Download File</b> &#10042; <a href="https://jinyurl.com/2uNO62">https://jinyurl.com/2uNO62</a></b></p><br /><br />
7
- <h3>Features of Cover Fire 3D Offline Shooting Game</h3>
8
- <p>Some of the features that make this game stand out are:</p>
9
- <h4>Shooting Online and Offline on mobile</h4>
10
- <p>You can play this game offline in a challenging single-player campaign, or online with other players around the world. You can also play in co-op mode with your friends or join a clan to fight for glory.</p>
11
- <h4>New Shooting Game and best Sniper 3d shooting game</h4>
12
- <p>You can unlock unique army weapons and shoot cool guns in this game. You can customize and upgrade your guns skills to increase your damage in the war zone. You can also use grenades, drones, robots, and more to help you in your missions.</p>
13
- <h4>Easy controls and low mobile requirements</h4>
14
- <p>The game has easy controls that are customizable to suit your preferences. You can also adjust the graphics quality to optimize the performance on your device. The game does not require a lot of storage space or internet connection to run smoothly.</p>
15
- <h4>Online Sniper Tournaments and cool war events</h4>
16
- <p>You can compete and fight against other players or friends in online sniper tournaments and rank up in the leaderboards. You can also participate in cool war events, such as Zombies Survival or Black Ops, where you have to shoot to kill and survive.</p>
17
- <h2>What is Cover Fire 3D Offline Shooting Game Mod APK?</h2>
18
- <p>Cover Fire 3D Offline Shooting Game Mod APK is a modified version of the original game that gives you some extra benefits that are not available in the official version. With this mod apk, you can get unlimited money, coins, weapons, upgrades, and more. You can also enjoy the game without any ads or root access. This way, you can enjoy the game to the fullest and have more fun and excitement.</p>
19
- <h3>Benefits of Cover Fire 3D Offline Shooting Game Mod APK</h3>
20
- <p>Some of the benefits that you can get from using Cover Fire 3D Offline Shooting Game Mod APK are:</p>
21
- <p>cover fire 3d offline shooting mod apk download<br />
22
- cover fire 3d offline shooting game unlimited money<br />
23
- cover fire 3d offline shooting game pro apk<br />
24
- cover fire 3d offline shooting game hack<br />
25
- cover fire 3d offline shooting game free download<br />
26
- cover fire 3d offline shooting game latest version<br />
27
- cover fire 3d offline shooting game apk + obb<br />
28
- cover fire 3d offline shooting game for android<br />
29
- cover fire 3d offline shooting game mod apk happymod<br />
30
- cover fire 3d offline shooting game mod apk revdl<br />
31
- cover fire 3d offline shooting game mod apk rexdl<br />
32
- cover fire 3d offline shooting game mod apk android 1<br />
33
- cover fire 3d offline shooting game mod apk unlimited everything<br />
34
- cover fire 3d offline shooting game mod apk unlimited gold<br />
35
- cover fire 3d offline shooting game mod apk unlimited ammo<br />
36
- cover fire 3d offline shooting game mod apk unlocked all guns<br />
37
- cover fire 3d offline shooting game mod apk no ads<br />
38
- cover fire 3d offline shooting game mod apk mega mod<br />
39
- cover fire 3d offline shooting game mod apk data<br />
40
- cover fire 3d offline shooting game mod apk pure<br />
41
- cover fire 3d offline shooting game mod apk full version<br />
42
- cover fire 3d offline shooting game mod apk premium<br />
43
- cover fire 3d offline shooting game mod apk vip<br />
44
- cover fire 3d offline shooting game mod apk new update<br />
45
- cover fire 3d offline shooting game mod apk online<br />
46
- cover fire 3d offline shooting games pro mod apk download<br />
47
- cover fire 3d offline shooting games hack apk download<br />
48
- cover fire 3d offline shooting games free download for pc<br />
49
- cover fire 3d offline shooting games best action games mod apk<br />
50
- cover fire 3d offline shooting games sniper shooter mod apk<br />
51
- cover fire 3d offline shooting games zombie survival mode apk<br />
52
- cover fire 3d offline shooting games black ops mode apk<br />
53
- cover fire 3d offline shooting games realistic graphics and fun missions apk<br />
54
- cover fire 3d offline shooting games easy controls and low mobile requirements apk<br />
55
- cover fire 3d offline shooting games unlock unique army weapons and shoot cool guns apk<br />
56
- cover fire 3d offline shooting games customize and upgrade your best guns skills apk<br />
57
- cover fire 3d offline shooting games killing with iconic gun, powerful sniper weapons and modern shotguns apk<br />
58
- cover fire 3d offline shooting games grenades are your best companion in the war apk<br />
59
- cover fire 3d offline shooting games compete and fight against other players or friends online apk<br />
60
- cover fire 3d offline shooting games call to action and win the war, your duty is to be best shooter apk</p>
61
- <h4>Unlimited money and coins</h4>
62
- <p>With unlimited money and coins, you can buy any weapon or upgrade that you want without worrying about the cost. You can also use them to unlock new chapters, modes, and events in the game.</p>
63
- <h4>All weapons and upgrades unlocked</h4>
64
- <p>With all weapons and upgrades unlocked, you can choose from a variety of guns and customize them to your liking. You can also improve your skills and abilities to become a better shooter and soldier.</p>
65
- <h4>No ads and no root needed</h4>
66
- <p>With no ads and no root needed, you can play the game without any interruptions or distractions. You can also install the mod apk on your device without having to root it or risk damaging it.</p>
67
- <h2>How to download and install Cover Fire 3D Offline Shooting Game Mod APK?</h2>
68
- <p>If you want to download and install Cover Fire 3D Offline Shooting Game Mod APK on your device, you need to follow these steps:</p>
69
- <h3>Steps to download and install Cover Fire 3D Offline Shooting Game Mod APK</h3>
70
- <h4>Download APK and OBB files from a trusted source</h4>
71
- <p>The first step is to download the APK and OBB files of the mod apk from a trusted source. You can find many websites that offer these files, but make sure they are safe and reliable. You can also scan the files with an antivirus before opening them.</p>
72
- <h4>Enable unknown sources on your device settings</h4>
73
- <p>The second step is to enable unknown sources on your device settings. This will allow you to install apps that are not from the Google Play Store. To do this, go to Settings > Security > Unknown Sources and toggle it on.</p>
74
- <h4>Install the APK file and extract the OBB file to Android/OBB folder</h4>
75
- <p>The third step is to install the APK file and extract the OBB file to Android/OBB folder. To do this, locate the downloaded APK file on your device and tap on it to start the installation process. Follow the instructions on the screen and wait for it to finish. Then, use a file manager app to extract the OBB file to Android/OBB folder. Make sure the folder name matches the package name of the game.</p>
76
- <h4>Launch the game and enjoy</h4>
77
- <p>The final step is to launch the game and enjoy. You can now play Cover Fire 3D Offline Shooting Game with unlimited money, coins, weapons, upgrades, and more.</p>
78
- <h2>Conclusion</h2>
79
- <p>Cover Fire 3D Offline Shooting Game is one of the best shooting games you can play on your mobile device. It has realistic 3D graphics, easy controls, offline missions, online tournaments, war events, and more. But if you want to have more fun and excitement, you can try Cover Fire 3D Offline Shooting Game Mod APK. This mod apk gives you unlimited money, coins, weapons, upgrades, and more. You can also play the game without any ads or root access. To download and install this mod apk, you just need to follow some simple steps that we have explained in this article. So what are you waiting for? Download Cover Fire 3D Offline Shooting Game Mod APK now and enjoy shooting like never before.</p>
80
- <h2>FAQs</h2>
81
- <p>Here are some frequently asked questions about Cover Fire 3D Offline Shooting Game Mod APK:</p>
82
- <ul>
83
- <li><b>Is Cover Fire 3D Offline Shooting Game Mod APK safe?</b></li>
84
- <p>Yes, Cover Fire 3D Offline Shooting Game Mod APK is safe as long as you download it from a trusted source. You should also scan the files with an antivirus before opening them.</p>
85
- <li><b>Is Cover Fire 3D Offline Shooting Game Mod APK free?</b></li>
86
- <p>Yes, Cover Fire 3D Offline Shooting Game Mod APK is free. You don't have to pay anything to download or use it.</p>
87
- <li><b>Does Cover Fire 3D Offline Shooting Game Mod APK work on all devices?</b></li>
88
- <p>Cover Fire 3D Offline Shooting Game Mod APK works on most Android devices that support the original game. However, some devices may not be compatible or may experience some issues.</p>
89
- <li><b>Do I need an internet connection to play Cover Fire 3D Offline Shooting Game Mod APK?</b></li>
90
- <p>No, you don't need an internet connection to play Cover Fire 3D Offline Shooting Game Mod APK. You can play the game offline in the single-player campaign or online in the multiplayer mode.</p>
91
- <li><b>How can I update Cover Fire 3D Offline Shooting Game Mod APK?</b></li>
92
- <p>To update Cover Fire 3D Offline Shooting Game Mod APK, you need to download the latest version of the mod apk from the same source you downloaded it from. Then, you need to uninstall the previous version and install the new one. You may also need to delete and extract the OBB file again.</p>
93
- </ul></p> 401be4b1e0<br />
94
- <br />
95
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Hunter Assassin 2 Hack Mod Apk and Unlock All Characters and Weapons.md DELETED
@@ -1,91 +0,0 @@
1
- <br />
2
- <h1>Hunter Assassin 2 Mod Apk Hack Download: Everything You Need to Know</h1>
3
- <p>Are you a fan of stealth action games? Do you love to sneak around and eliminate your enemies without being detected? If yes, then you should try Hunter Assassin 2, the sequel to the popular game Hunter Assassin. In this game, you will play as a skilled assassin who has to infiltrate various locations and take out the guards with your knife. Sounds easy, right? Well, not so fast. The guards are armed with guns and will shoot you on sight if they spot you. You have to use your speed, agility, and strategy to avoid their bullets and reach your target. But don't worry, you are not alone. You can choose from different characters and weapons to suit your style and preference. And if you want to make the game more fun and exciting, you can download Hunter Assassin 2 mod apk hack and enjoy unlimited money, gems, characters, weapons, and more. In this article, we will tell you everything you need to know about Hunter Assassin 2 mod apk hack download, including its features, benefits, and installation process. Let's get started!</p>
4
- <h2>hunter assassin 2 mod apk hack download</h2><br /><p><b><b>Download File</b> &#10003; <a href="https://jinyurl.com/2uNRAE">https://jinyurl.com/2uNRAE</a></b></p><br /><br />
5
- <h2>What is Hunter Assassin 2?</h2>
6
- <p>Hunter Assassin 2 is a stealth action game developed by Ruby Game Studio, the same creators of Hunter Assassin, Jetpack Jump, Gym Flip, and more. It is available for both Android and iOS devices. The game has over 10 million downloads on Google Play Store and has a rating of 4.4 out of 5 stars. It is also one of the top-grossing action games on the platform.</p>
7
- <h3>The gameplay of Hunter Assassin 2</h3>
8
- <p>The gameplay of Hunter Assassin 2 is simple but addictive. You have to control your character with a joystick and tap on the screen to attack your enemies. Your goal is to eliminate all the guards in each level without being seen or shot. You can hide behind walls, crates, barrels, and other objects to avoid detection. You can also use your knife to cut the wires and disable the lights or cameras. You have to be quick and smart, as the guards will patrol around and chase you if they hear any noise or see any movement. You will earn money and gems for each kill, which you can use to upgrade your character and weapon.</p>
9
- <h3>The features of Hunter Assassin 2</h3>
10
- <p>Hunter Assassin 2 has many features that make it an enjoyable and challenging game. Some of them are:</p>
11
- <ul>
12
- <li>Multiple locations: The game has various locations to explore, such as warehouses, factories, prisons, military bases, and more. Each location has different layouts, obstacles, enemies, and traps that require different strategies and skills.</li>
13
- <li>Different characters: You can choose from a variety of different characters to play as, each with their own unique abilities and weapons. For example, some characters have faster speed, higher health, longer range, or stronger attack than others. You can unlock new characters by completing missions or using gems.</li>
14
- <li>Different weapons: You can also equip different weapons to enhance your performance in the game. Some weapons have more damage, accuracy, or fire rate than others. You can unlock new weapons by using money or gems.</li>
15
- <li>Daily missions: The game has daily missions that give you extra rewards for completing certain tasks or challenges. For example, some missions require you to kill a certain number of guards, use a specific character or weapon, or finish a level within a time limit.</li>
16
- <li>Leaderboards: The game has leaderboards that rank you based on your score, kills, levels completed, and other stats. You can compete with other players around the world and see who is the best hunter assassin.</li>
17
- </ul>
18
- <h2>Why download Hunter Assassin 2 mod apk hack?</h2>
19
- <p>While Hunter Assassin 2 is a fun and addictive game, it can also be frustrating and time-consuming at times. You may find yourself stuck on a level, running out of money or gems, or getting bored of the same characters and weapons. That's why you may want to download Hunter Assassin 2 mod apk hack and enjoy the game with more freedom and fun. Here are some of the benefits of downloading Hunter Assassin 2 mod apk hack:</p>
20
- <h3>Unlimited money and gems</h3>
21
- <p>Money and gems are the main currencies in the game, which you can use to upgrade your character and weapon, unlock new characters and weapons, and buy boosters and items. However, earning money and gems can be slow and tedious, especially if you want to get the best items in the game. With Hunter Assassin 2 mod apk hack, you don't have to worry about that. You will get unlimited money and gems in your account, which you can spend as much as you want without any limitations.</p>
22
- <p>hunter assassin 2 mod apk unlimited money and gems<br />
23
- hunter assassin 2 hack mod apk latest version<br />
24
- hunter assassin 2 mod apk free download for android<br />
25
- hunter assassin 2 hack mod apk no root<br />
26
- hunter assassin 2 mod apk unlock all characters<br />
27
- hunter assassin 2 hack mod apk online<br />
28
- hunter assassin 2 mod apk offline<br />
29
- hunter assassin 2 hack mod apk ios<br />
30
- hunter assassin 2 mod apk premium<br />
31
- hunter assassin 2 hack mod apk revdl<br />
32
- hunter assassin 2 mod apk vip<br />
33
- hunter assassin 2 hack mod apk happy mod<br />
34
- hunter assassin 2 mod apk new update<br />
35
- hunter assassin 2 hack mod apk rexdl<br />
36
- hunter assassin 2 mod apk unlimited diamonds<br />
37
- hunter assassin 2 hack mod apk an1<br />
38
- hunter assassin 2 mod apk mega mod<br />
39
- hunter assassin 2 hack mod apk android 1<br />
40
- hunter assassin 2 mod apk god mode<br />
41
- hunter assassin 2 hack mod apk pure<br />
42
- hunter assassin 2 mod apk all weapons unlocked<br />
43
- hunter assassin 2 hack mod apk mediafıre<br />
44
- hunter assassin 2 mod apk pro<br />
45
- hunter assassin 2 hack mod apk mob.org<br />
46
- hunter assassin 2 mod apk unlimited everything<br />
47
- hunter assassin 2 hack mod apk apkpure<br />
48
- hunter assassin 2 mod apk full version<br />
49
- hunter assassin 2 hack mod apk blackmod<br />
50
- hunter assassin 2 mod apk no ads<br />
51
- hunter assassin 2 hack mod apk platinmods<br />
52
- hunter assassin 2 mod apk unlimited health<br />
53
- hunter assassin 2 hack mod apk uptodown<br />
54
- hunter assassin 2 mod apk high damage<br />
55
- hunter assassin 2 hack mod apk android republic<br />
56
- hunter assassin 2 mod apk one hit kill<br />
57
- hunter assassin 2 hack mod apk ihackedit<br />
58
- hunter assassin 2 mod apk unlimited coins and keys<br />
59
- hunter assassin 2 hack mod apk andropalace<br />
60
- hunter assassin 2 mod apk super speed<br />
61
- hunter assassin 2 hack mod apk apkmody</p>
62
- <h3>Unlocked all characters and weapons</h3>
63
- <p>Another benefit of downloading Hunter Assassin 2 mod apk hack is that you will get access to all the characters and weapons in the game. Normally, you have to complete missions or use gems to unlock new characters and weapons, which can take a lot of time and effort. But with Hunter Assassin 2 mod apk hack, you can choose any character or weapon you like from the start, without having to unlock them. You can experiment with different combinations and find the ones that suit your style and preference.</p>
64
- <h3>No ads and no root required</h3>
65
- <p>One of the most annoying things about playing Hunter Assassin 2 is that you have to watch ads every time you finish a level or die in the game. These ads can interrupt your gameplay and ruin your experience. Moreover, some mod apk files require you to root your device, which can be risky and complicated. But with Hunter Assassin 2 mod apk hack, you don't have to worry about that. You will not see any ads in the game, and you don't need to root your device to install the mod apk file. You can enjoy the game without any distractions or hassles.</p>
66
- <h2>How to download and install Hunter Assassin 2 mod apk hack?</h2>
67
- <p>Now that you know the benefits of downloading Hunter Assassin 2 mod apk hack, you may be wondering how to do it. Well, it's very easy and simple. Just follow these steps:</p>
68
- <h3>Step 1: Download the mod apk file from a trusted source</h3>
69
- <p>The first thing you need to do is to download the mod apk file from a trusted source. There are many websites that offer mod apk files for various games, but not all of them are safe and reliable. Some of them may contain viruses, malware, or spyware that can harm your device or steal your personal information. Therefore, you need to be careful and choose a reputable website that provides genuine and working mod apk files. One such website is [ModApkWorld], which has a large collection of mod apk files for different games, including Hunter Assassin 2. You can download Hunter Assassin 2 mod apk hack from this website by clicking on this [link].</p>
70
- <h3>Step 2: Enable unknown sources on your device</h3>
71
- <p>The next thing you need to do is to enable unknown sources on your device. This is because Android devices do not allow installing apps from sources other than Google Play Store by default, for security reasons. However, since you are downloading the mod apk file from a trusted source, you don't have to worry about that. To enable unknown sources on your device, go to Settings > Security > Unknown Sources and toggle it on.</p>
72
- <h3>Step 3: Install the mod apk file and enjoy the game</h3>
73
- <p>The final thing you need to do is to install the mod apk file and enjoy the game. To do that, locate the downloaded mod apk file on your device's file manager or downloads folder and tap on it. Then, follow the instructions on the screen to install the app. Once the installation is complete, open the app and start playing Hunter Assassin 2 with unlimited money, gems, characters, weapons, and more.</p>
74
- <h2>Conclusion</h2>
75
- <p>Hunter Assassin 2 is a stealth action game that tests your skills and strategy as an assassin who has to eliminate all the guards in each level without being seen or shot. The game has multiple locations, different characters, different weapons, daily missions, leaderboards, and more features that make it an enjoyable and challenging game. However, if you want to make the game more fun and exciting, you can download Hunter Assassin 2 mod apk hack and enjoy unlimited money, gems, characters, weapons, and more. You can download Hunter Assassin 2 mod apk hack from [ModApkWorld] by following the steps we mentioned in this article. We hope you found this article helpful and informative. If you have any questions or feedback, feel free to leave a comment below. Happy hunting!</p>
76
- <h4>FAQs</h4>
77
- <p>Here are some of the frequently asked questions about Hunter Assassin 2 mod apk hack download:</p>
78
- <ul>
79
- <li>Q: Is Hunter Assassin 2 mod apk hack safe to use?</li>
80
- <li>A: Yes, Hunter Assassin 2 mod apk hack is safe to use, as long as you download it from a trusted source like [ModApkWorld]. The mod apk file does not contain any viruses, malware, or spyware that can harm your device or steal your personal information. However, you should always scan the file before installing it, just to be on the safe side.</li>
81
- <li>Q: Does Hunter Assassin 2 mod apk hack require internet connection?</li>
82
- <li>A: No, Hunter Assassin 2 mod apk hack does not require internet connection to play. You can play the game offline without any problems. However, you may need internet connection to access some features like leaderboards or daily missions.</li>
83
- <li>Q: Will Hunter Assassin 2 mod apk hack affect my game progress?</li>
84
- <li>A: No, Hunter Assassin 2 mod apk hack will not affect your game progress. You can continue playing the game from where you left off, with all your money, gems, characters, weapons, and levels intact. However, you should always back up your game data before installing any mod apk file, just in case something goes wrong.</li>
85
- <li>Q: Can I update Hunter Assassin 2 mod apk hack?</li>
86
- <li>A: Yes, you can update Hunter Assassin 2 mod apk hack whenever there is a new version available. However, you should always download the latest version of the mod apk file from [ModApkWorld], as other sources may not be updated or compatible with the new version of the game.</li>
87
- <li>Q: Can I play Hunter Assassin 2 mod apk hack with my friends?</li>
88
- <li>A: Yes, you can play Hunter Assassin 2 mod apk hack with your friends, as long as they also have the same mod apk file installed on their devices. You can share the mod apk file with them via Bluetooth, Wi-Fi, or other methods. You can also compete with them on the leaderboards and see who is the best hunter assassin.</li>
89
- </ul></p> 197e85843d<br />
90
- <br />
91
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Facebook Lite APK A Smaller and Faster Version of Facebook for Android.md DELETED
@@ -1,132 +0,0 @@
1
-
2
- <h1>Facebook Download Lite APK: A Faster and Lighter Way to Connect with Friends</h1>
3
- <p>Facebook is one of the most popular social media platforms in the world, with over 2.8 billion monthly active users. However, not everyone has access to a fast and stable internet connection, or a powerful and spacious smartphone. That's why Facebook created Facebook Lite, a lighter and faster version of the main app that works on all Android devices and networks. In this article, we will explain what Facebook Lite is, how to download and install it, and how to use it to stay in touch with your friends and family.</p>
4
- <h2>facebook download lite apk</h2><br /><p><b><b>Download File</b> >>>>> <a href="https://jinyurl.com/2uNTgQ">https://jinyurl.com/2uNTgQ</a></b></p><br /><br />
5
- <h2>What is Facebook Lite?</h2>
6
- <p>Facebook Lite is an official Facebook client that lets you use this popular social network through a much lighter app that's better suited for low-power Android devices or ones with limited internet connections. The app takes up about 250 kilobytes on your memory once installed, which means that it occupies a hundred times less space than the standard Facebook app. It also consumes less mobile data and works on 2G networks and areas with slow or unstable internet connections.</p>
7
- <h3>The main features of Facebook Lite</h3>
8
- <p>Facebook Lite has all the classic features of Facebook that you need, such as:</p>
9
- <ul>
10
- <li>Sharing photos, videos, status updates, and stories</li>
11
- <li>Liking, commenting, and reacting to posts from your friends and pages you follow</li>
12
- <li>Chatting and calling with Messenger Lite, which is integrated into the app</li>
13
- <li>Watching and broadcasting live videos</li>
14
- <li>Joining groups, events, and pages</li>
15
- <li>Finding nearby friends and places</li>
16
- <li>Getting notifications for important activities</li>
17
- </ul>
18
- <h3>The benefits of using Facebook Lite</h3>
19
- <p>By using Facebook Lite, you can enjoy the following benefits:</p>
20
- <ul>
21
- <li>Save space on your phone and use less storage space</li>
22
- <li>Save money by using less mobile data</li>
23
- <li>Load faster and upload photos faster</li>
24
- <li>Work on old Android phones that are not supported by the regular Facebook app</li>
25
- <li>Work on all networks, even on 2G networks and areas with poor internet connection</li>
26
- </ul>
27
- <h2>How to download and install Facebook Lite APK?</h2>
28
- <p>There are three ways to download and install Facebook Lite APK on your Android device:</p>
29
- <h3>Downloading from the official website</h3>
30
- <p>You can download the Facebook Lite APK from the official website by following these steps:</p>
31
- <p>facebook lite apk download for android 2.3<br />
32
- facebook lite apk free download latest version<br />
33
- facebook lite apk download uptodown<br />
34
- facebook lite apk download for android 4.4.2<br />
35
- facebook lite apk download for jio phone<br />
36
- facebook lite apk download for pc windows 10<br />
37
- facebook lite apk download old version 2018<br />
38
- facebook lite apk download for android 5.1<br />
39
- facebook lite apk download apkpure<br />
40
- facebook lite apk download for samsung galaxy y<br />
41
- facebook lite apk download for android 6.0<br />
42
- facebook lite apk download for nokia x2<br />
43
- facebook lite apk download for blackberry z10<br />
44
- facebook lite apk download for iphone 4s<br />
45
- facebook lite apk download for android 7.0<br />
46
- facebook lite apk download for huawei y6<br />
47
- facebook lite apk download for oppo a37<br />
48
- facebook lite apk download for vivo y53<br />
49
- facebook lite apk download for android 8.0<br />
50
- facebook lite apk download for lenovo a6000<br />
51
- facebook lite apk download for micromax q402<br />
52
- facebook lite apk download for redmi note 4<br />
53
- facebook lite apk download for lg g3<br />
54
- facebook lite apk download for tecno spark k7<br />
55
- facebook lite apk download for android 9.0<br />
56
- facebook lite apk download for asus zenfone 2<br />
57
- facebook lite apk download for infinix hot 4<br />
58
- facebook lite apk download for moto g5 plus<br />
59
- facebook lite apk download for sony xperia z2<br />
60
- facebook lite apk download for htc desire 626<br />
61
- facebook lite apk download for android 10.0<br />
62
- facebook lite apk download for oneplus 6t<br />
63
- facebook lite apk download for itel a16 plus<br />
64
- facebook lite apk download for realme c1<br />
65
- facebook lite apk download for samsung galaxy s10<br />
66
- facebook lite apk download for lg g6<br />
67
- facebook lite apk download for nokia lumia 520<br />
68
- facebook lite apk download for honor 9n<br />
69
- facebook lite apk download for xiaomi mi a2<br />
70
- facebook lite apk download for zte blade l110<br />
71
- facebook lite apk download for android 11.0<br />
72
- facebook lite apk download for google pixel 3a<br />
73
- facebook lite apk download for lava z61 pro<br />
74
- facebook lite apk download for poco f1<br />
75
- facebook lite apk download for samsung galaxy a50s<br />
76
- facebook lite apk download for lg stylo 4</p>
77
- <ol>
78
- <li>Go to <a href="(^1^)">https://www.facebook.com/lite</a></li>
79
- <li>Tap on the "Download" button</li>
80
- <li>Allow your browser to download the APK file</li>
81
- <li>Open the file manager app on your phone and locate the downloaded file</li>
82
- <li>Tap on the file and follow the instructions to install the app</li>
83
- <li>Launch the app and log in with your account</li>
84
- </ol>
85
- <h3>Downloading from Uptodown</h3>
86
- <p>You can also download the Facebook Lite APK from Uptodown, a website that offers free downloads of Android apps. Here's how:</p>
87
- <ol>
88
- <li>Go to <a href="(^2^)">https://facebook-lite.en.uptodown.com/android</a></li>
89
- <li>Tap on the "Download" button</li>
90
- <li>Select the latest version of the app and tap on "Download APK"</li>
91
- <li>Allow your browser to download the APK file</li>
92
- <li>Open the file manager app on your phone and locate the downloaded file</li>
93
- <li>Tap on the file and follow the instructions to install the app</li>
94
- <li>Launch the app and log in with your account</li>
95
- </ol>
96
- <h3>Downloading from Google Play Store</h3>
97
- <p>The easiest way to download and install Facebook Lite APK is from the Google Play Store, the official app store for Android devices. Here's how:</p>
98
- <ol>
99
- <li>Go to <a href="">https://play.google.com/store/apps/details?id=com.facebook.lite</a></li>
100
- <li>Tap on the "Install" button</li>
101
- <li>Wait for the app to download and install automatically</li>
102
- <li>Launch the app and log in with your account</li>
103
- </ol>
104
- <h2>How to use Facebook Lite?</h2>
105
- <p>Using Facebook Lite is very similar to using the regular Facebook app, but with some minor differences. Here are some tips on how to use Facebook Lite:</p>
106
- <h3>Logging in with your account</h3>
107
- <p>To log in with your account, you need to enter your email address or phone number and your password. You can also choose to stay logged in or log out from the settings menu. If you don't have an account, you can create one by tapping on the "Sign Up" button.</p>
108
- <h3>Browsing your news feed and stories</h3>
109
- <p>To browse your news feed and stories, you can swipe up and down on the screen. You can also tap on the icons at the top of the screen to switch between different tabs, such as home, friends, groups, notifications, and menu. To view a story, you can tap on it and swipe left or right to see more stories. To exit a story, you can swipe down or tap on the "X" button.</p>
110
- <h3>Posting and reacting to content</h3>
111
- <p>To post and react to content, you can use the buttons at the bottom of the screen. You can tap on the "+" button to create a new post, where you can add photos, videos, text, stickers, emojis, and more. You can also tap on the "Live" button to start a live video broadcast. To react to a post, you can tap on the "Like" button or hold it to see more reactions, such as love, haha, wow, sad, and angry. You can also tap on the "Comment" button to write a comment or reply to other comments.</p>
112
- <h3>Chatting and calling with Messenger Lite</h3>
113
- <p>To chat and call with Messenger Lite, you can tap on the "Chat" button at the bottom of the screen. You will see a list of your recent conversations and contacts. You can tap on a conversation or contact to open it and send messages, photos, videos, stickers, emojis, voice notes, and more. You can also tap on the "Call" button to make a voice or video call. To start a new conversation or call, you can tap on the "+" button at the top of the screen.</p>
114
- <h3>Watching and broadcasting live videos</h3>
115
- <p>To watch and broadcast live videos, you can use the "Live" feature. You can tap on the "Live" button at the bottom of the screen to start a live video broadcast. You can choose who can see your live video, add a description, tag friends, and more. You can also see how many viewers and comments you have during your broadcast. To end your broadcast, you can tap on the "Finish" button. To watch live videos from other people or pages, you can tap on the "Live" tab at the top of the screen. You will see a list of live videos that are relevant to you. You can tap on a live video to watch it and interact with it by liking, commenting, or sharing.</p>
116
- <h2>Conclusion</h2>
117
- <p>Facebook Lite is a great alternative to the regular Facebook app for people who want to save space, data, and battery on their Android devices. It has all the essential features of Facebook that you need to connect with your friends and family. It also works well on low-end devices and slow networks. If you want to download and install Facebook Lite APK on your device, you can follow one of the three methods we explained above. We hope this article was helpful for you and that you enjoy using Facebook Lite.</p>
118
- <h4>FAQs</h4>
119
- <ul>
120
- <li><b>What is the difference between Facebook Lite and Facebook?</b><br>
121
- Facebook Lite is a lighter and faster version of Facebook that works on all Android devices and networks. It takes up less space, data, and battery than Facebook. It also has some features that are not available on Facebook, such as Messenger Lite integration.</li>
122
- <li><b>Is Facebook Lite safe?</b><br>
123
- Yes, Facebook Lite is safe to use. It is an official Facebook client that follows the same privacy and security policies as Facebook. You can also adjust your privacy settings and control who can see your posts and profile on Facebook Lite.</li>
124
- <li><b>How can I update Facebook Lite?</b><br>
125
- You can update Facebook Lite by following the same method that you used to download and install it. If you downloaded it from the official website or Uptodown, you can check for updates on those websites and download the latest version of the APK file. If you downloaded it from the Google Play Store, you can check for updates on the app store and tap on the "Update" button.</li>
126
- <li><b>Can I use Facebook Lite on my PC or laptop?</b><br>
127
- No, Facebook Lite is only available for Android devices. If you want to use Facebook on your PC or laptop, you can use the regular Facebook website or app.</li>
128
- <li><b>Can I use Facebook Lite and Facebook at the same time?</b><br>
129
- Yes, you can use both apps on your device at the same time. However, you will need to log in with different accounts on each app, as you cannot use the same account on both apps simultaneously.</li>
130
- </ul></p> 401be4b1e0<br />
131
- <br />
132
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AI-Zero-to-Hero/04-GR-Seq-2-Seq-QA-Auto-Gen/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: 04 GR Seq 2 Seq QA Auto Gen
3
- emoji: 💻
4
- colorFrom: pink
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.4
8
- app_file: app.py
9
- pinned: false
10
- license: apache-2.0
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIGC-Audio/Make_An_Audio/ldm/modules/encoders/open_clap/feature_fusion.py DELETED
@@ -1,193 +0,0 @@
1
- '''
2
- Feature Fusion for Varible-Length Data Processing
3
- AFF/iAFF is referred and modified from https://github.com/YimianDai/open-aff/blob/master/aff_pytorch/aff_net/fusion.py
4
- According to the paper: Yimian Dai et al, Attentional Feature Fusion, IEEE Winter Conference on Applications of Computer Vision, WACV 2021
5
- '''
6
-
7
- import torch
8
- import torch.nn as nn
9
-
10
-
11
- class DAF(nn.Module):
12
- '''
13
- 直接相加 DirectAddFuse
14
- '''
15
-
16
- def __init__(self):
17
- super(DAF, self).__init__()
18
-
19
- def forward(self, x, residual):
20
- return x + residual
21
-
22
-
23
- class iAFF(nn.Module):
24
- '''
25
- 多特征融合 iAFF
26
- '''
27
-
28
- def __init__(self, channels=64, r=4, type='2D'):
29
- super(iAFF, self).__init__()
30
- inter_channels = int(channels // r)
31
-
32
- if type == '1D':
33
- # 本地注意力
34
- self.local_att = nn.Sequential(
35
- nn.Conv1d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
36
- nn.BatchNorm1d(inter_channels),
37
- nn.ReLU(inplace=True),
38
- nn.Conv1d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
39
- nn.BatchNorm1d(channels),
40
- )
41
-
42
- # 全局注意力
43
- self.global_att = nn.Sequential(
44
- nn.AdaptiveAvgPool1d(1),
45
- nn.Conv1d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
46
- nn.BatchNorm1d(inter_channels),
47
- nn.ReLU(inplace=True),
48
- nn.Conv1d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
49
- nn.BatchNorm1d(channels),
50
- )
51
-
52
- # 第二次本地注意力
53
- self.local_att2 = nn.Sequential(
54
- nn.Conv1d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
55
- nn.BatchNorm1d(inter_channels),
56
- nn.ReLU(inplace=True),
57
- nn.Conv1d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
58
- nn.BatchNorm1d(channels),
59
- )
60
- # 第二次全局注意力
61
- self.global_att2 = nn.Sequential(
62
- nn.AdaptiveAvgPool1d(1),
63
- nn.Conv1d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
64
- nn.BatchNorm1d(inter_channels),
65
- nn.ReLU(inplace=True),
66
- nn.Conv1d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
67
- nn.BatchNorm1d(channels),
68
- )
69
- elif type == '2D':
70
- # 本地注意力
71
- self.local_att = nn.Sequential(
72
- nn.Conv2d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
73
- nn.BatchNorm2d(inter_channels),
74
- nn.ReLU(inplace=True),
75
- nn.Conv2d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
76
- nn.BatchNorm2d(channels),
77
- )
78
-
79
- # 全局注意力
80
- self.global_att = nn.Sequential(
81
- nn.AdaptiveAvgPool2d(1),
82
- nn.Conv2d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
83
- nn.BatchNorm2d(inter_channels),
84
- nn.ReLU(inplace=True),
85
- nn.Conv2d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
86
- nn.BatchNorm2d(channels),
87
- )
88
-
89
- # 第二次本地注意力
90
- self.local_att2 = nn.Sequential(
91
- nn.Conv2d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
92
- nn.BatchNorm2d(inter_channels),
93
- nn.ReLU(inplace=True),
94
- nn.Conv2d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
95
- nn.BatchNorm2d(channels),
96
- )
97
- # 第二次全局注意力
98
- self.global_att2 = nn.Sequential(
99
- nn.AdaptiveAvgPool2d(1),
100
- nn.Conv2d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
101
- nn.BatchNorm2d(inter_channels),
102
- nn.ReLU(inplace=True),
103
- nn.Conv2d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
104
- nn.BatchNorm2d(channels),
105
- )
106
- else:
107
- raise f'the type is not supported'
108
-
109
- self.sigmoid = nn.Sigmoid()
110
-
111
- def forward(self, x, residual):
112
- flag = False
113
- xa = x + residual
114
- if xa.size(0) == 1:
115
- xa = torch.cat([xa,xa],dim=0)
116
- flag = True
117
- xl = self.local_att(xa)
118
- xg = self.global_att(xa)
119
- xlg = xl + xg
120
- wei = self.sigmoid(xlg)
121
- xi = x * wei + residual * (1 - wei)
122
-
123
- xl2 = self.local_att2(xi)
124
- xg2 = self.global_att(xi)
125
- xlg2 = xl2 + xg2
126
- wei2 = self.sigmoid(xlg2)
127
- xo = x * wei2 + residual * (1 - wei2)
128
- if flag:
129
- xo = xo[0].unsqueeze(0)
130
- return xo
131
-
132
-
133
- class AFF(nn.Module):
134
- '''
135
- 多特征融合 AFF
136
- '''
137
-
138
- def __init__(self, channels=64, r=4, type='2D'):
139
- super(AFF, self).__init__()
140
- inter_channels = int(channels // r)
141
-
142
- if type == '1D':
143
- self.local_att = nn.Sequential(
144
- nn.Conv1d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
145
- nn.BatchNorm1d(inter_channels),
146
- nn.ReLU(inplace=True),
147
- nn.Conv1d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
148
- nn.BatchNorm1d(channels),
149
- )
150
- self.global_att = nn.Sequential(
151
- nn.AdaptiveAvgPool1d(1),
152
- nn.Conv1d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
153
- nn.BatchNorm1d(inter_channels),
154
- nn.ReLU(inplace=True),
155
- nn.Conv1d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
156
- nn.BatchNorm1d(channels),
157
- )
158
- elif type == '2D':
159
- self.local_att = nn.Sequential(
160
- nn.Conv2d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
161
- nn.BatchNorm2d(inter_channels),
162
- nn.ReLU(inplace=True),
163
- nn.Conv2d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
164
- nn.BatchNorm2d(channels),
165
- )
166
- self.global_att = nn.Sequential(
167
- nn.AdaptiveAvgPool2d(1),
168
- nn.Conv2d(channels, inter_channels, kernel_size=1, stride=1, padding=0),
169
- nn.BatchNorm2d(inter_channels),
170
- nn.ReLU(inplace=True),
171
- nn.Conv2d(inter_channels, channels, kernel_size=1, stride=1, padding=0),
172
- nn.BatchNorm2d(channels),
173
- )
174
- else:
175
- raise f'the type is not supported.'
176
-
177
- self.sigmoid = nn.Sigmoid()
178
-
179
- def forward(self, x, residual):
180
- flag = False
181
- xa = x + residual
182
- if xa.size(0) == 1:
183
- xa = torch.cat([xa,xa],dim=0)
184
- flag = True
185
- xl = self.local_att(xa)
186
- xg = self.global_att(xa)
187
- xlg = xl + xg
188
- wei = self.sigmoid(xlg)
189
- xo = 2 * x * wei + 2 * residual * (1 - wei)
190
- if flag:
191
- xo = xo[0].unsqueeze(0)
192
- return xo
193
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIZ2H/Gradio331-3D-Models-AI-1/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: 01 Gradio 3D Models for AI
3
- emoji: 🦆🧊
4
- colorFrom: yellow
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 3.3.1
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ASJMO/freegpt/get_working_providers.py DELETED
@@ -1,7 +0,0 @@
1
- from g4f.active_providers import get_active_model_providers
2
-
3
- working_providers = get_active_model_providers()
4
-
5
- print("\nWorking providers by model:")
6
- for model, providers in working_providers.items():
7
- print(f"{model}: {', '.join(providers)}")
 
 
 
 
 
 
 
 
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Phind.py DELETED
@@ -1,76 +0,0 @@
1
- from __future__ import annotations
2
-
3
- import random
4
- from datetime import datetime
5
-
6
- from ..typing import AsyncGenerator
7
- from ..requests import StreamSession
8
- from .base_provider import AsyncGeneratorProvider, format_prompt
9
-
10
-
11
- class Phind(AsyncGeneratorProvider):
12
- url = "https://www.phind.com"
13
- working = True
14
- supports_gpt_4 = True
15
-
16
- @classmethod
17
- async def create_async_generator(
18
- cls,
19
- model: str,
20
- messages: list[dict[str, str]],
21
- proxy: str = None,
22
- **kwargs
23
- ) -> AsyncGenerator:
24
- chars = 'abcdefghijklmnopqrstuvwxyz0123456789'
25
- user_id = ''.join(random.choice(chars) for _ in range(24))
26
- data = {
27
- "question": format_prompt(messages),
28
- "webResults": [],
29
- "options": {
30
- "date": datetime.now().strftime("%d.%m.%Y"),
31
- "language": "en",
32
- "detailed": True,
33
- "anonUserId": user_id,
34
- "answerModel": "GPT-4",
35
- "creativeMode": False,
36
- "customLinks": []
37
- },
38
- "context":""
39
- }
40
- headers = {
41
- "Authority": cls.url,
42
- "Accept": "application/json, text/plain, */*",
43
- "Origin": cls.url,
44
- "Referer": f"{cls.url}/"
45
- }
46
- async with StreamSession(headers=headers, timeout=(5, 180), proxies={"https": proxy}, impersonate="chrome107") as session:
47
- async with session.post(f"{cls.url}/api/infer/answer", json=data) as response:
48
- response.raise_for_status()
49
- new_lines = 0
50
- async for line in response.iter_lines():
51
- if not line:
52
- continue
53
- if line.startswith(b"data: "):
54
- line = line[6:]
55
- if line.startswith(b"<PHIND_METADATA>"):
56
- continue
57
- if line:
58
- if new_lines:
59
- yield "".join(["\n" for _ in range(int(new_lines / 2))])
60
- new_lines = 0
61
- yield line.decode()
62
- else:
63
- new_lines += 1
64
-
65
-
66
- @classmethod
67
- @property
68
- def params(cls):
69
- params = [
70
- ("model", "str"),
71
- ("messages", "list[dict[str, str]]"),
72
- ("stream", "bool"),
73
- ("proxy", "str"),
74
- ]
75
- param = ", ".join([": ".join(p) for p in params])
76
- return f"g4f.provider.{cls.__name__} supports: ({param})"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Akbartus/U2net-with-rgba/app.py DELETED
@@ -1,67 +0,0 @@
1
- import os
2
- import copy
3
- import time
4
-
5
- import cv2 as cv
6
- import numpy as np
7
- import onnxruntime
8
-
9
- from PIL import Image
10
-
11
- import gradio
12
-
13
- def run_inference(onnx_session, input_size, image):
14
- # リサイズ
15
- temp_image = copy.deepcopy(image)
16
- resize_image = cv.resize(temp_image, dsize=(input_size, input_size))
17
- x = cv.cvtColor(resize_image, cv.COLOR_BGR2RGB)
18
-
19
- # 前処理
20
- x = np.array(x, dtype=np.float32)
21
- mean = [0.485, 0.456, 0.406]
22
- std = [0.229, 0.224, 0.225]
23
- x = (x / 255 - mean) / std
24
- x = x.transpose(2, 0, 1).astype('float32')
25
- x = x.reshape(-1, 3, input_size, input_size)
26
-
27
- # 推論
28
- input_name = onnx_session.get_inputs()[0].name
29
- output_name = onnx_session.get_outputs()[0].name
30
- onnx_result = onnx_session.run([output_name], {input_name: x})
31
-
32
- # 後処理
33
- onnx_result = np.array(onnx_result).squeeze()
34
- min_value = np.min(onnx_result)
35
- max_value = np.max(onnx_result)
36
- onnx_result = (onnx_result - min_value) / (max_value - min_value)
37
- onnx_result *= 255
38
- onnx_result = onnx_result.astype('uint8')
39
-
40
- return onnx_result
41
-
42
- # Load model
43
- onnx_session = onnxruntime.InferenceSession("u2net.onnx")
44
-
45
- def create_rgba(mode, image):
46
- out = run_inference(
47
- onnx_session,
48
- 320,
49
- image,
50
- )
51
- resize_image = cv.resize(out, dsize=(image.shape[1], image.shape[0]))
52
-
53
- if mode == "binary":
54
- resize_image[resize_image > 255] = 255
55
- resize_image[resize_image < 125] = 0
56
-
57
- mask = Image.fromarray(resize_image)
58
-
59
- rgba_image = Image.fromarray(image).convert('RGBA')
60
- rgba_image.putalpha(mask)
61
-
62
- return rgba_image
63
-
64
- inputs = [gradio.inputs.Radio(["binary", "smooth"]), gradio.inputs.Image()]
65
- outputs = gradio.outputs.Image(type="pil")
66
- iface = gradio.Interface(fn=create_rgba, inputs=inputs, outputs=outputs, api_name="add")
67
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Akinade/Iris_App/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Iris App
3
- emoji: 😻
4
- colorFrom: pink
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 3.0.19
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Alpaca233/SadTalker/src/facerender/sync_batchnorm/__init__.py DELETED
@@ -1,12 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # File : __init__.py
3
- # Author : Jiayuan Mao
4
- # Email : [email protected]
5
- # Date : 27/01/2018
6
- #
7
- # This file is part of Synchronized-BatchNorm-PyTorch.
8
- # https://github.com/vacancy/Synchronized-BatchNorm-PyTorch
9
- # Distributed under MIT License.
10
-
11
- from .batchnorm import SynchronizedBatchNorm1d, SynchronizedBatchNorm2d, SynchronizedBatchNorm3d
12
- from .replicate import DataParallelWithCallback, patch_replication_callback
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Amrrs/DragGan-Inversion/PTI/editings/latent_editor.py DELETED
@@ -1,23 +0,0 @@
1
- import torch
2
-
3
- from configs import paths_config
4
- from editings import ganspace
5
- from utils.data_utils import tensor2im
6
-
7
-
8
- class LatentEditor(object):
9
-
10
- def apply_ganspace(self, latent, ganspace_pca, edit_directions):
11
- edit_latents = ganspace.edit(latent, ganspace_pca, edit_directions)
12
- return edit_latents
13
-
14
- def apply_interfacegan(self, latent, direction, factor=1, factor_range=None):
15
- edit_latents = []
16
- if factor_range is not None: # Apply a range of editing factors. for example, (-5, 5)
17
- for f in range(*factor_range):
18
- edit_latent = latent + f * direction
19
- edit_latents.append(edit_latent)
20
- edit_latents = torch.cat(edit_latents)
21
- else:
22
- edit_latents = latent + factor * direction
23
- return edit_latents
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Amrrs/DragGan-Inversion/PTI/models/StyleCLIP/mapper/options/train_options.py DELETED
@@ -1,49 +0,0 @@
1
- from argparse import ArgumentParser
2
-
3
-
4
- class TrainOptions:
5
-
6
- def __init__(self):
7
- self.parser = ArgumentParser()
8
- self.initialize()
9
-
10
- def initialize(self):
11
- self.parser.add_argument('--exp_dir', type=str, help='Path to experiment output directory')
12
- self.parser.add_argument('--mapper_type', default='LevelsMapper', type=str, help='Which mapper to use')
13
- self.parser.add_argument('--no_coarse_mapper', default=False, action="store_true")
14
- self.parser.add_argument('--no_medium_mapper', default=False, action="store_true")
15
- self.parser.add_argument('--no_fine_mapper', default=False, action="store_true")
16
- self.parser.add_argument('--latents_train_path', default="train_faces.pt", type=str, help="The latents for the training")
17
- self.parser.add_argument('--latents_test_path', default="test_faces.pt", type=str, help="The latents for the validation")
18
- self.parser.add_argument('--train_dataset_size', default=5000, type=int, help="Will be used only if no latents are given")
19
- self.parser.add_argument('--test_dataset_size', default=1000, type=int, help="Will be used only if no latents are given")
20
-
21
- self.parser.add_argument('--batch_size', default=2, type=int, help='Batch size for training')
22
- self.parser.add_argument('--test_batch_size', default=1, type=int, help='Batch size for testing and inference')
23
- self.parser.add_argument('--workers', default=4, type=int, help='Number of train dataloader workers')
24
- self.parser.add_argument('--test_workers', default=2, type=int, help='Number of test/inference dataloader workers')
25
-
26
- self.parser.add_argument('--learning_rate', default=0.5, type=float, help='Optimizer learning rate')
27
- self.parser.add_argument('--optim_name', default='ranger', type=str, help='Which optimizer to use')
28
-
29
- self.parser.add_argument('--id_lambda', default=0.1, type=float, help='ID loss multiplier factor')
30
- self.parser.add_argument('--clip_lambda', default=1.0, type=float, help='CLIP loss multiplier factor')
31
- self.parser.add_argument('--latent_l2_lambda', default=0.8, type=float, help='Latent L2 loss multiplier factor')
32
-
33
- self.parser.add_argument('--stylegan_weights', default='../pretrained_models/stylegan2-ffhq-config-f.pt', type=str, help='Path to StyleGAN model weights')
34
- self.parser.add_argument('--stylegan_size', default=1024, type=int)
35
- self.parser.add_argument('--ir_se50_weights', default='../pretrained_models/model_ir_se50.pth', type=str, help="Path to facial recognition network used in ID loss")
36
- self.parser.add_argument('--checkpoint_path', default=None, type=str, help='Path to StyleCLIPModel model checkpoint')
37
-
38
- self.parser.add_argument('--max_steps', default=50000, type=int, help='Maximum number of training steps')
39
- self.parser.add_argument('--image_interval', default=100, type=int, help='Interval for logging train images during training')
40
- self.parser.add_argument('--board_interval', default=50, type=int, help='Interval for logging metrics to tensorboard')
41
- self.parser.add_argument('--val_interval', default=2000, type=int, help='Validation interval')
42
- self.parser.add_argument('--save_interval', default=2000, type=int, help='Model checkpoint interval')
43
-
44
- self.parser.add_argument('--description', required=True, type=str, help='Driving text prompt')
45
-
46
-
47
- def parse(self):
48
- opts = self.parser.parse_args()
49
- return opts
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/api/pipelines/versatile_diffusion.md DELETED
@@ -1,54 +0,0 @@
1
- <!--Copyright 2023 The HuggingFace Team. All rights reserved.
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
4
- the License. You may obtain a copy of the License at
5
-
6
- http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
9
- an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
10
- specific language governing permissions and limitations under the License.
11
- -->
12
-
13
- # Versatile Diffusion
14
-
15
- Versatile Diffusion was proposed in [Versatile Diffusion: Text, Images and Variations All in One Diffusion Model](https://huggingface.co/papers/2211.08332) by Xingqian Xu, Zhangyang Wang, Eric Zhang, Kai Wang, Humphrey Shi .
16
-
17
- The abstract from the paper is:
18
-
19
- *The recent advances in diffusion models have set an impressive milestone in many generation tasks. Trending works such as DALL-E2, Imagen, and Stable Diffusion have attracted great interest in academia and industry. Despite the rapid landscape changes, recent new approaches focus on extensions and performance rather than capacity, thus requiring separate models for separate tasks. In this work, we expand the existing single-flow diffusion pipeline into a multi-flow network, dubbed Versatile Diffusion (VD), that handles text-to-image, image-to-text, image-variation, and text-variation in one unified model. Moreover, we generalize VD to a unified multi-flow multimodal diffusion framework with grouped layers, swappable streams, and other propositions that can process modalities beyond images and text. Through our experiments, we demonstrate that VD and its underlying framework have the following merits: a) VD handles all subtasks with competitive quality; b) VD initiates novel extensions and applications such as disentanglement of style and semantic, image-text dual-guided generation, etc.; c) Through these experiments and applications, VD provides more semantic insights of the generated outputs.*
20
-
21
- ## Tips
22
-
23
- You can load the more memory intensive "all-in-one" [`VersatileDiffusionPipeline`] that supports all the tasks or use the individual pipelines which are more memory efficient.
24
-
25
- | **Pipeline** | **Supported tasks** |
26
- |------------------------------------------------------|-----------------------------------|
27
- | [`VersatileDiffusionPipeline`] | all of the below |
28
- | [`VersatileDiffusionTextToImagePipeline`] | text-to-image |
29
- | [`VersatileDiffusionImageVariationPipeline`] | image variation |
30
- | [`VersatileDiffusionDualGuidedPipeline`] | image-text dual guided generation |
31
-
32
- <Tip>
33
-
34
- Make sure to check out the Schedulers [guide](/using-diffusers/schedulers) to learn how to explore the tradeoff between scheduler speed and quality, and see the [reuse components across pipelines](/using-diffusers/loading#reuse-components-across-pipelines) section to learn how to efficiently load the same components into multiple pipelines.
35
-
36
- </Tip>
37
-
38
- ## VersatileDiffusionPipeline
39
- [[autodoc]] VersatileDiffusionPipeline
40
-
41
- ## VersatileDiffusionTextToImagePipeline
42
- [[autodoc]] VersatileDiffusionTextToImagePipeline
43
- - all
44
- - __call__
45
-
46
- ## VersatileDiffusionImageVariationPipeline
47
- [[autodoc]] VersatileDiffusionImageVariationPipeline
48
- - all
49
- - __call__
50
-
51
- ## VersatileDiffusionDualGuidedPipeline
52
- [[autodoc]] VersatileDiffusionDualGuidedPipeline
53
- - all
54
- - __call__
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/experimental/README.md DELETED
@@ -1,5 +0,0 @@
1
- # 🧨 Diffusers Experimental
2
-
3
- We are adding experimental code to support novel applications and usages of the Diffusers library.
4
- Currently, the following experiments are supported:
5
- * Reinforcement learning via an implementation of the [Diffuser](https://arxiv.org/abs/2205.09991) model.
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_upscale.py DELETED
@@ -1,232 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2022 HuggingFace Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import random
17
- import unittest
18
-
19
- import numpy as np
20
- import torch
21
-
22
- from diffusers import (
23
- DPMSolverMultistepScheduler,
24
- EulerAncestralDiscreteScheduler,
25
- EulerDiscreteScheduler,
26
- LMSDiscreteScheduler,
27
- OnnxStableDiffusionUpscalePipeline,
28
- PNDMScheduler,
29
- )
30
- from diffusers.utils import floats_tensor
31
- from diffusers.utils.testing_utils import (
32
- is_onnx_available,
33
- load_image,
34
- nightly,
35
- require_onnxruntime,
36
- require_torch_gpu,
37
- )
38
-
39
- from ..test_pipelines_onnx_common import OnnxPipelineTesterMixin
40
-
41
-
42
- if is_onnx_available():
43
- import onnxruntime as ort
44
-
45
-
46
- class OnnxStableDiffusionUpscalePipelineFastTests(OnnxPipelineTesterMixin, unittest.TestCase):
47
- # TODO: is there an appropriate internal test set?
48
- hub_checkpoint = "ssube/stable-diffusion-x4-upscaler-onnx"
49
-
50
- def get_dummy_inputs(self, seed=0):
51
- image = floats_tensor((1, 3, 128, 128), rng=random.Random(seed))
52
- generator = torch.manual_seed(seed)
53
- inputs = {
54
- "prompt": "A painting of a squirrel eating a burger",
55
- "image": image,
56
- "generator": generator,
57
- "num_inference_steps": 3,
58
- "guidance_scale": 7.5,
59
- "output_type": "numpy",
60
- }
61
- return inputs
62
-
63
- def test_pipeline_default_ddpm(self):
64
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(self.hub_checkpoint, provider="CPUExecutionProvider")
65
- pipe.set_progress_bar_config(disable=None)
66
-
67
- inputs = self.get_dummy_inputs()
68
- image = pipe(**inputs).images
69
- image_slice = image[0, -3:, -3:, -1].flatten()
70
-
71
- # started as 128, should now be 512
72
- assert image.shape == (1, 512, 512, 3)
73
- expected_slice = np.array(
74
- [0.6974782, 0.68902093, 0.70135885, 0.7583618, 0.7804545, 0.7854912, 0.78667426, 0.78743863, 0.78070223]
75
- )
76
- assert np.abs(image_slice - expected_slice).max() < 1e-1
77
-
78
- def test_pipeline_pndm(self):
79
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(self.hub_checkpoint, provider="CPUExecutionProvider")
80
- pipe.scheduler = PNDMScheduler.from_config(pipe.scheduler.config, skip_prk_steps=True)
81
- pipe.set_progress_bar_config(disable=None)
82
-
83
- inputs = self.get_dummy_inputs()
84
- image = pipe(**inputs).images
85
- image_slice = image[0, -3:, -3:, -1]
86
-
87
- assert image.shape == (1, 512, 512, 3)
88
- expected_slice = np.array(
89
- [0.6898892, 0.59240556, 0.52499527, 0.58866215, 0.52258235, 0.52572715, 0.62414473, 0.6174387, 0.6214964]
90
- )
91
- assert np.abs(image_slice.flatten() - expected_slice).max() < 1e-1
92
-
93
- def test_pipeline_dpm_multistep(self):
94
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(self.hub_checkpoint, provider="CPUExecutionProvider")
95
- pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
96
- pipe.set_progress_bar_config(disable=None)
97
-
98
- inputs = self.get_dummy_inputs()
99
- image = pipe(**inputs).images
100
- image_slice = image[0, -3:, -3:, -1]
101
-
102
- assert image.shape == (1, 512, 512, 3)
103
- expected_slice = np.array(
104
- [0.7659278, 0.76437664, 0.75579107, 0.7691116, 0.77666986, 0.7727672, 0.7758664, 0.7812226, 0.76942515]
105
- )
106
-
107
- assert np.abs(image_slice.flatten() - expected_slice).max() < 1e-1
108
-
109
- def test_pipeline_euler(self):
110
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(self.hub_checkpoint, provider="CPUExecutionProvider")
111
- pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
112
- pipe.set_progress_bar_config(disable=None)
113
-
114
- inputs = self.get_dummy_inputs()
115
- image = pipe(**inputs).images
116
- image_slice = image[0, -3:, -3:, -1]
117
-
118
- assert image.shape == (1, 512, 512, 3)
119
- expected_slice = np.array(
120
- [0.6974782, 0.68902093, 0.70135885, 0.7583618, 0.7804545, 0.7854912, 0.78667426, 0.78743863, 0.78070223]
121
- )
122
- assert np.abs(image_slice.flatten() - expected_slice).max() < 1e-1
123
-
124
- def test_pipeline_euler_ancestral(self):
125
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(self.hub_checkpoint, provider="CPUExecutionProvider")
126
- pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
127
- pipe.set_progress_bar_config(disable=None)
128
-
129
- inputs = self.get_dummy_inputs()
130
- image = pipe(**inputs).images
131
- image_slice = image[0, -3:, -3:, -1]
132
-
133
- assert image.shape == (1, 512, 512, 3)
134
- expected_slice = np.array(
135
- [0.77424496, 0.773601, 0.7645288, 0.7769598, 0.7772739, 0.7738688, 0.78187233, 0.77879584, 0.767043]
136
- )
137
-
138
- assert np.abs(image_slice.flatten() - expected_slice).max() < 1e-1
139
-
140
-
141
- @nightly
142
- @require_onnxruntime
143
- @require_torch_gpu
144
- class OnnxStableDiffusionUpscalePipelineIntegrationTests(unittest.TestCase):
145
- @property
146
- def gpu_provider(self):
147
- return (
148
- "CUDAExecutionProvider",
149
- {
150
- "gpu_mem_limit": "15000000000", # 15GB
151
- "arena_extend_strategy": "kSameAsRequested",
152
- },
153
- )
154
-
155
- @property
156
- def gpu_options(self):
157
- options = ort.SessionOptions()
158
- options.enable_mem_pattern = False
159
- return options
160
-
161
- def test_inference_default_ddpm(self):
162
- init_image = load_image(
163
- "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
164
- "/img2img/sketch-mountains-input.jpg"
165
- )
166
- init_image = init_image.resize((128, 128))
167
- # using the PNDM scheduler by default
168
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(
169
- "ssube/stable-diffusion-x4-upscaler-onnx",
170
- provider=self.gpu_provider,
171
- sess_options=self.gpu_options,
172
- )
173
- pipe.set_progress_bar_config(disable=None)
174
-
175
- prompt = "A fantasy landscape, trending on artstation"
176
-
177
- generator = torch.manual_seed(0)
178
- output = pipe(
179
- prompt=prompt,
180
- image=init_image,
181
- guidance_scale=7.5,
182
- num_inference_steps=10,
183
- generator=generator,
184
- output_type="np",
185
- )
186
- images = output.images
187
- image_slice = images[0, 255:258, 383:386, -1]
188
-
189
- assert images.shape == (1, 512, 512, 3)
190
- expected_slice = np.array([0.4883, 0.4947, 0.4980, 0.4975, 0.4982, 0.4980, 0.5000, 0.5006, 0.4972])
191
- # TODO: lower the tolerance after finding the cause of onnxruntime reproducibility issues
192
-
193
- assert np.abs(image_slice.flatten() - expected_slice).max() < 2e-2
194
-
195
- def test_inference_k_lms(self):
196
- init_image = load_image(
197
- "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
198
- "/img2img/sketch-mountains-input.jpg"
199
- )
200
- init_image = init_image.resize((128, 128))
201
- lms_scheduler = LMSDiscreteScheduler.from_pretrained(
202
- "ssube/stable-diffusion-x4-upscaler-onnx", subfolder="scheduler"
203
- )
204
- pipe = OnnxStableDiffusionUpscalePipeline.from_pretrained(
205
- "ssube/stable-diffusion-x4-upscaler-onnx",
206
- scheduler=lms_scheduler,
207
- provider=self.gpu_provider,
208
- sess_options=self.gpu_options,
209
- )
210
- pipe.set_progress_bar_config(disable=None)
211
-
212
- prompt = "A fantasy landscape, trending on artstation"
213
-
214
- generator = torch.manual_seed(0)
215
- output = pipe(
216
- prompt=prompt,
217
- image=init_image,
218
- guidance_scale=7.5,
219
- num_inference_steps=20,
220
- generator=generator,
221
- output_type="np",
222
- )
223
- images = output.images
224
- image_slice = images[0, 255:258, 383:386, -1]
225
-
226
- assert images.shape == (1, 512, 512, 3)
227
- expected_slice = np.array(
228
- [0.50173753, 0.50223356, 0.502039, 0.50233036, 0.5023725, 0.5022601, 0.5018758, 0.50234085, 0.50241566]
229
- )
230
- # TODO: lower the tolerance after finding the cause of onnxruntime reproducibility issues
231
-
232
- assert np.abs(image_slice.flatten() - expected_slice).max() < 2e-2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/pipelines/text_to_video/test_text_to_video.py DELETED
@@ -1,205 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2023 HuggingFace Inc.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import unittest
17
-
18
- import numpy as np
19
- import torch
20
- from transformers import CLIPTextConfig, CLIPTextModel, CLIPTokenizer
21
-
22
- from diffusers import (
23
- AutoencoderKL,
24
- DDIMScheduler,
25
- DPMSolverMultistepScheduler,
26
- TextToVideoSDPipeline,
27
- UNet3DConditionModel,
28
- )
29
- from diffusers.utils import is_xformers_available, load_numpy, skip_mps, slow, torch_device
30
- from diffusers.utils.testing_utils import enable_full_determinism
31
-
32
- from ..pipeline_params import TEXT_TO_IMAGE_BATCH_PARAMS, TEXT_TO_IMAGE_PARAMS
33
- from ..test_pipelines_common import PipelineTesterMixin
34
-
35
-
36
- enable_full_determinism()
37
-
38
-
39
- @skip_mps
40
- class TextToVideoSDPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
41
- pipeline_class = TextToVideoSDPipeline
42
- params = TEXT_TO_IMAGE_PARAMS
43
- batch_params = TEXT_TO_IMAGE_BATCH_PARAMS
44
- # No `output_type`.
45
- required_optional_params = frozenset(
46
- [
47
- "num_inference_steps",
48
- "generator",
49
- "latents",
50
- "return_dict",
51
- "callback",
52
- "callback_steps",
53
- ]
54
- )
55
-
56
- def get_dummy_components(self):
57
- torch.manual_seed(0)
58
- unet = UNet3DConditionModel(
59
- block_out_channels=(32, 64, 64, 64),
60
- layers_per_block=2,
61
- sample_size=32,
62
- in_channels=4,
63
- out_channels=4,
64
- down_block_types=("CrossAttnDownBlock3D", "CrossAttnDownBlock3D", "CrossAttnDownBlock3D", "DownBlock3D"),
65
- up_block_types=("UpBlock3D", "CrossAttnUpBlock3D", "CrossAttnUpBlock3D", "CrossAttnUpBlock3D"),
66
- cross_attention_dim=32,
67
- attention_head_dim=4,
68
- )
69
- scheduler = DDIMScheduler(
70
- beta_start=0.00085,
71
- beta_end=0.012,
72
- beta_schedule="scaled_linear",
73
- clip_sample=False,
74
- set_alpha_to_one=False,
75
- )
76
- torch.manual_seed(0)
77
- vae = AutoencoderKL(
78
- block_out_channels=[32, 64],
79
- in_channels=3,
80
- out_channels=3,
81
- down_block_types=["DownEncoderBlock2D", "DownEncoderBlock2D"],
82
- up_block_types=["UpDecoderBlock2D", "UpDecoderBlock2D"],
83
- latent_channels=4,
84
- sample_size=128,
85
- )
86
- torch.manual_seed(0)
87
- text_encoder_config = CLIPTextConfig(
88
- bos_token_id=0,
89
- eos_token_id=2,
90
- hidden_size=32,
91
- intermediate_size=37,
92
- layer_norm_eps=1e-05,
93
- num_attention_heads=4,
94
- num_hidden_layers=5,
95
- pad_token_id=1,
96
- vocab_size=1000,
97
- hidden_act="gelu",
98
- projection_dim=512,
99
- )
100
- text_encoder = CLIPTextModel(text_encoder_config)
101
- tokenizer = CLIPTokenizer.from_pretrained("hf-internal-testing/tiny-random-clip")
102
-
103
- components = {
104
- "unet": unet,
105
- "scheduler": scheduler,
106
- "vae": vae,
107
- "text_encoder": text_encoder,
108
- "tokenizer": tokenizer,
109
- }
110
- return components
111
-
112
- def get_dummy_inputs(self, device, seed=0):
113
- if str(device).startswith("mps"):
114
- generator = torch.manual_seed(seed)
115
- else:
116
- generator = torch.Generator(device=device).manual_seed(seed)
117
- inputs = {
118
- "prompt": "A painting of a squirrel eating a burger",
119
- "generator": generator,
120
- "num_inference_steps": 2,
121
- "guidance_scale": 6.0,
122
- "output_type": "pt",
123
- }
124
- return inputs
125
-
126
- def test_text_to_video_default_case(self):
127
- device = "cpu" # ensure determinism for the device-dependent torch.Generator
128
- components = self.get_dummy_components()
129
- sd_pipe = TextToVideoSDPipeline(**components)
130
- sd_pipe = sd_pipe.to(device)
131
- sd_pipe.set_progress_bar_config(disable=None)
132
-
133
- inputs = self.get_dummy_inputs(device)
134
- inputs["output_type"] = "np"
135
- frames = sd_pipe(**inputs).frames
136
- image_slice = frames[0][-3:, -3:, -1]
137
-
138
- assert frames[0].shape == (64, 64, 3)
139
- expected_slice = np.array([158.0, 160.0, 153.0, 125.0, 100.0, 121.0, 111.0, 93.0, 113.0])
140
-
141
- assert np.abs(image_slice.flatten() - expected_slice).max() < 1e-2
142
-
143
- def test_attention_slicing_forward_pass(self):
144
- self._test_attention_slicing_forward_pass(test_mean_pixel_difference=False, expected_max_diff=3e-3)
145
-
146
- @unittest.skipIf(
147
- torch_device != "cuda" or not is_xformers_available(),
148
- reason="XFormers attention is only available with CUDA and `xformers` installed",
149
- )
150
- def test_xformers_attention_forwardGenerator_pass(self):
151
- self._test_xformers_attention_forwardGenerator_pass(test_mean_pixel_difference=False, expected_max_diff=1e-2)
152
-
153
- # (todo): sayakpaul
154
- @unittest.skip(reason="Batching needs to be properly figured out first for this pipeline.")
155
- def test_inference_batch_consistent(self):
156
- pass
157
-
158
- # (todo): sayakpaul
159
- @unittest.skip(reason="Batching needs to be properly figured out first for this pipeline.")
160
- def test_inference_batch_single_identical(self):
161
- pass
162
-
163
- @unittest.skip(reason="`num_images_per_prompt` argument is not supported for this pipeline.")
164
- def test_num_images_per_prompt(self):
165
- pass
166
-
167
- def test_progress_bar(self):
168
- return super().test_progress_bar()
169
-
170
-
171
- @slow
172
- @skip_mps
173
- class TextToVideoSDPipelineSlowTests(unittest.TestCase):
174
- def test_full_model(self):
175
- expected_video = load_numpy(
176
- "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/text_to_video/video.npy"
177
- )
178
-
179
- pipe = TextToVideoSDPipeline.from_pretrained("damo-vilab/text-to-video-ms-1.7b")
180
- pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
181
- pipe = pipe.to("cuda")
182
-
183
- prompt = "Spiderman is surfing"
184
- generator = torch.Generator(device="cpu").manual_seed(0)
185
-
186
- video_frames = pipe(prompt, generator=generator, num_inference_steps=25, output_type="pt").frames
187
- video = video_frames.cpu().numpy()
188
-
189
- assert np.abs(expected_video - video).mean() < 5e-2
190
-
191
- def test_two_step_model(self):
192
- expected_video = load_numpy(
193
- "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/text_to_video/video_2step.npy"
194
- )
195
-
196
- pipe = TextToVideoSDPipeline.from_pretrained("damo-vilab/text-to-video-ms-1.7b")
197
- pipe = pipe.to("cuda")
198
-
199
- prompt = "Spiderman is surfing"
200
- generator = torch.Generator(device="cpu").manual_seed(0)
201
-
202
- video_frames = pipe(prompt, generator=generator, num_inference_steps=2, output_type="pt").frames
203
- video = video_frames.cpu().numpy()
204
-
205
- assert np.abs(expected_video - video).mean() < 5e-2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/mmdet/core/bbox/samplers/base_sampler.py DELETED
@@ -1,101 +0,0 @@
1
- from abc import ABCMeta, abstractmethod
2
-
3
- import torch
4
-
5
- from .sampling_result import SamplingResult
6
-
7
-
8
- class BaseSampler(metaclass=ABCMeta):
9
- """Base class of samplers."""
10
-
11
- def __init__(self,
12
- num,
13
- pos_fraction,
14
- neg_pos_ub=-1,
15
- add_gt_as_proposals=True,
16
- **kwargs):
17
- self.num = num
18
- self.pos_fraction = pos_fraction
19
- self.neg_pos_ub = neg_pos_ub
20
- self.add_gt_as_proposals = add_gt_as_proposals
21
- self.pos_sampler = self
22
- self.neg_sampler = self
23
-
24
- @abstractmethod
25
- def _sample_pos(self, assign_result, num_expected, **kwargs):
26
- """Sample positive samples."""
27
- pass
28
-
29
- @abstractmethod
30
- def _sample_neg(self, assign_result, num_expected, **kwargs):
31
- """Sample negative samples."""
32
- pass
33
-
34
- def sample(self,
35
- assign_result,
36
- bboxes,
37
- gt_bboxes,
38
- gt_labels=None,
39
- **kwargs):
40
- """Sample positive and negative bboxes.
41
-
42
- This is a simple implementation of bbox sampling given candidates,
43
- assigning results and ground truth bboxes.
44
-
45
- Args:
46
- assign_result (:obj:`AssignResult`): Bbox assigning results.
47
- bboxes (Tensor): Boxes to be sampled from.
48
- gt_bboxes (Tensor): Ground truth bboxes.
49
- gt_labels (Tensor, optional): Class labels of ground truth bboxes.
50
-
51
- Returns:
52
- :obj:`SamplingResult`: Sampling result.
53
-
54
- Example:
55
- >>> from mmdet.core.bbox import RandomSampler
56
- >>> from mmdet.core.bbox import AssignResult
57
- >>> from mmdet.core.bbox.demodata import ensure_rng, random_boxes
58
- >>> rng = ensure_rng(None)
59
- >>> assign_result = AssignResult.random(rng=rng)
60
- >>> bboxes = random_boxes(assign_result.num_preds, rng=rng)
61
- >>> gt_bboxes = random_boxes(assign_result.num_gts, rng=rng)
62
- >>> gt_labels = None
63
- >>> self = RandomSampler(num=32, pos_fraction=0.5, neg_pos_ub=-1,
64
- >>> add_gt_as_proposals=False)
65
- >>> self = self.sample(assign_result, bboxes, gt_bboxes, gt_labels)
66
- """
67
- if len(bboxes.shape) < 2:
68
- bboxes = bboxes[None, :]
69
-
70
- bboxes = bboxes[:, :4]
71
-
72
- gt_flags = bboxes.new_zeros((bboxes.shape[0], ), dtype=torch.uint8)
73
- if self.add_gt_as_proposals and len(gt_bboxes) > 0:
74
- if gt_labels is None:
75
- raise ValueError(
76
- 'gt_labels must be given when add_gt_as_proposals is True')
77
- bboxes = torch.cat([gt_bboxes, bboxes], dim=0)
78
- assign_result.add_gt_(gt_labels)
79
- gt_ones = bboxes.new_ones(gt_bboxes.shape[0], dtype=torch.uint8)
80
- gt_flags = torch.cat([gt_ones, gt_flags])
81
-
82
- num_expected_pos = int(self.num * self.pos_fraction)
83
- pos_inds = self.pos_sampler._sample_pos(
84
- assign_result, num_expected_pos, bboxes=bboxes, **kwargs)
85
- # We found that sampled indices have duplicated items occasionally.
86
- # (may be a bug of PyTorch)
87
- pos_inds = pos_inds.unique()
88
- num_sampled_pos = pos_inds.numel()
89
- num_expected_neg = self.num - num_sampled_pos
90
- if self.neg_pos_ub >= 0:
91
- _pos = max(1, num_sampled_pos)
92
- neg_upper_bound = int(self.neg_pos_ub * _pos)
93
- if num_expected_neg > neg_upper_bound:
94
- num_expected_neg = neg_upper_bound
95
- neg_inds = self.neg_sampler._sample_neg(
96
- assign_result, num_expected_neg, bboxes=bboxes, **kwargs)
97
- neg_inds = neg_inds.unique()
98
-
99
- sampling_result = SamplingResult(pos_inds, neg_inds, bboxes, gt_bboxes,
100
- assign_result, gt_flags)
101
- return sampling_result
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/tools/analysis_tools/eval_metric.py DELETED
@@ -1,83 +0,0 @@
1
- import argparse
2
-
3
- import mmcv
4
- from mmcv import Config, DictAction
5
-
6
- from mmdet.datasets import build_dataset
7
-
8
-
9
- def parse_args():
10
- parser = argparse.ArgumentParser(description='Evaluate metric of the '
11
- 'results saved in pkl format')
12
- parser.add_argument('config', help='Config of the model')
13
- parser.add_argument('pkl_results', help='Results in pickle format')
14
- parser.add_argument(
15
- '--format-only',
16
- action='store_true',
17
- help='Format the output results without perform evaluation. It is'
18
- 'useful when you want to format the result to a specific format and '
19
- 'submit it to the test server')
20
- parser.add_argument(
21
- '--eval',
22
- type=str,
23
- nargs='+',
24
- help='Evaluation metrics, which depends on the dataset, e.g., "bbox",'
25
- ' "segm", "proposal" for COCO, and "mAP", "recall" for PASCAL VOC')
26
- parser.add_argument(
27
- '--cfg-options',
28
- nargs='+',
29
- action=DictAction,
30
- help='override some settings in the used config, the key-value pair '
31
- 'in xxx=yyy format will be merged into config file. If the value to '
32
- 'be overwritten is a list, it should be like key="[a,b]" or key=a,b '
33
- 'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" '
34
- 'Note that the quotation marks are necessary and that no white space '
35
- 'is allowed.')
36
- parser.add_argument(
37
- '--eval-options',
38
- nargs='+',
39
- action=DictAction,
40
- help='custom options for evaluation, the key-value pair in xxx=yyy '
41
- 'format will be kwargs for dataset.evaluate() function')
42
- args = parser.parse_args()
43
- return args
44
-
45
-
46
- def main():
47
- args = parse_args()
48
-
49
- cfg = Config.fromfile(args.config)
50
- assert args.eval or args.format_only, (
51
- 'Please specify at least one operation (eval/format the results) with '
52
- 'the argument "--eval", "--format-only"')
53
- if args.eval and args.format_only:
54
- raise ValueError('--eval and --format_only cannot be both specified')
55
-
56
- if args.cfg_options is not None:
57
- cfg.merge_from_dict(args.cfg_options)
58
- # import modules from string list.
59
- if cfg.get('custom_imports', None):
60
- from mmcv.utils import import_modules_from_strings
61
- import_modules_from_strings(**cfg['custom_imports'])
62
- cfg.data.test.test_mode = True
63
-
64
- dataset = build_dataset(cfg.data.test)
65
- outputs = mmcv.load(args.pkl_results)
66
-
67
- kwargs = {} if args.eval_options is None else args.eval_options
68
- if args.format_only:
69
- dataset.format_results(outputs, **kwargs)
70
- if args.eval:
71
- eval_kwargs = cfg.get('evaluation', {}).copy()
72
- # hard-code way to remove EvalHook args
73
- for key in [
74
- 'interval', 'tmpdir', 'start', 'gpu_collect', 'save_best',
75
- 'rule'
76
- ]:
77
- eval_kwargs.pop(key, None)
78
- eval_kwargs.update(dict(metric=args.eval, **kwargs))
79
- print(dataset.evaluate(outputs, **eval_kwargs))
80
-
81
-
82
- if __name__ == '__main__':
83
- main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_segmentation/configs/ccnet/ccnet_r50-d8_769x769_40k_cityscapes.py DELETED
@@ -1,9 +0,0 @@
1
- _base_ = [
2
- '../_base_/models/ccnet_r50-d8.py',
3
- '../_base_/datasets/cityscapes_769x769.py', '../_base_/default_runtime.py',
4
- '../_base_/schedules/schedule_40k.py'
5
- ]
6
- model = dict(
7
- decode_head=dict(align_corners=True),
8
- auxiliary_head=dict(align_corners=True),
9
- test_cfg=dict(mode='slide', crop_size=(769, 769), stride=(513, 513)))
 
 
 
 
 
 
 
 
 
 
spaces/Anonymous-sub/Rerender/videos/readme.md DELETED
File without changes
spaces/AquaSuisei/ChatGPTXE/Dockerfile DELETED
@@ -1,14 +0,0 @@
1
- FROM python:3.9 as builder
2
- RUN apt-get update && apt-get install -y build-essential
3
- COPY requirements.txt .
4
- RUN pip install --user -r requirements.txt
5
-
6
- FROM python:3.9
7
- MAINTAINER iskoldt
8
- COPY --from=builder /root/.local /root/.local
9
- ENV PATH=/root/.local/bin:$PATH
10
- COPY . /app
11
- WORKDIR /app
12
- ENV my_api_key empty
13
- ENV dockerrun yes
14
- CMD ["python3", "-u", "ChuanhuChatbot.py", "2>&1", "|", "tee", "/var/log/application.log"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Aravindan/butterfly_classification/app.py DELETED
@@ -1,112 +0,0 @@
1
- import cv2, torch
2
- import gradio as gr
3
- import numpy as np
4
- from PIL import Image
5
- import torch.nn as nn
6
- import torchvision.models as models
7
- from torchvision import transforms as T
8
-
9
- device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
10
- new_model = models.resnet18()
11
- num_ftrs = new_model.fc.in_features
12
- new_model.fc = nn.Linear(num_ftrs, 75)
13
- checkpoint = torch.load('model_best_checkpoint.pth.tar', map_location=torch.device('cpu'))
14
- new_model.load_state_dict(checkpoint['model'])
15
- new_model.to(device)
16
-
17
- we_are = ['INDRA SWALLOW',
18
- 'MALACHITE',
19
- 'COMMON BANDED AWL',
20
- 'DANAID EGGFLY',
21
- 'EASTERN PINE ELFIN',
22
- 'YELLOW SWALLOW TAIL',
23
- 'WOOD SATYR',
24
- 'ULYSES',
25
- 'MESTRA',
26
- 'MANGROVE SKIPPER',
27
- 'BECKERS WHITE',
28
- 'CRECENT',
29
- 'RED SPOTTED PURPLE',
30
- 'SOOTYWING',
31
- 'BLACK HAIRSTREAK',
32
- 'STRAITED QUEEN',
33
- 'ELBOWED PIERROT',
34
- 'ORANGE OAKLEAF',
35
- 'CHESTNUT',
36
- 'POPINJAY',
37
- 'COMMON WOOD-NYMPH',
38
- 'BROWN SIPROETA',
39
- 'QUESTION MARK',
40
- 'ADONIS',
41
- 'CLOUDED SULPHUR',
42
- 'TWO BARRED FLASHER',
43
- 'GOLD BANDED',
44
- 'BANDED ORANGE HELICONIAN',
45
- 'PURPLISH COPPER',
46
- 'VICEROY',
47
- 'RED CRACKER',
48
- 'SILVER SPOT SKIPPER',
49
- 'ZEBRA LONG WING',
50
- 'ORCHARD SWALLOW',
51
- 'RED POSTMAN',
52
- 'SOUTHERN DOGFACE',
53
- 'SCARCE SWALLOW',
54
- 'EASTERN COMA',
55
- 'CAIRNS BIRDWING',
56
- 'GREEN CELLED CATTLEHEART',
57
- 'METALMARK',
58
- 'LARGE MARBLE',
59
- 'AMERICAN SNOOT',
60
- 'COPPER TAIL',
61
- 'AN 88',
62
- 'AFRICAN GIANT SWALLOWTAIL',
63
- 'PAPER KITE',
64
- 'EASTERN DAPPLE WHITE',
65
- 'PEACOCK',
66
- 'ATALA',
67
- 'JULIA',
68
- 'RED ADMIRAL',
69
- 'GREAT JAY',
70
- 'GREAT EGGFLY',
71
- 'GREY HAIRSTREAK',
72
- 'PIPEVINE SWALLOW',
73
- 'PURPLE HAIRSTREAK',
74
- 'ORANGE TIP',
75
- 'BLUE SPOTTED CROW',
76
- 'TROPICAL LEAFWING',
77
- 'CLEOPATRA',
78
- 'APPOLLO',
79
- 'IPHICLUS SISTER',
80
- 'CABBAGE WHITE',
81
- 'BANDED PEACOCK',
82
- 'MONARCH',
83
- 'CRIMSON PATCH',
84
- 'BLUE MORPHO',
85
- 'MOURNING CLOAK',
86
- 'SLEEPY ORANGE',
87
- 'CLODIUS PARNASSIAN',
88
- 'MILBERTS TORTOISESHELL',
89
- 'PINE WHITE',
90
- 'CHECQUERED SKIPPER',
91
- 'PAINTED LADY']
92
-
93
- def classify(image_):
94
- model = new_model.eval()
95
- image = Image.open(image_)
96
- image = image_transforms(image).float().to(device)
97
- image = image.unsqueeze(0)
98
- output = model(image)
99
-
100
- _, predicted = torch.max(output, 1)
101
- return we_are[predicted]
102
-
103
-
104
- label = gr.outputs.Label(num_top_classes=75)
105
- gr.Interface(fn=classify, inputs='image', outputs=label,interpretation='default', title = 'Butterfly Classification detection ', description = 'It will classify 75 different species ').launch()
106
-
107
-
108
-
109
-
110
-
111
-
112
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/commands/wheel.py DELETED
@@ -1,180 +0,0 @@
1
- import logging
2
- import os
3
- import shutil
4
- from optparse import Values
5
- from typing import List
6
-
7
- from pip._internal.cache import WheelCache
8
- from pip._internal.cli import cmdoptions
9
- from pip._internal.cli.req_command import RequirementCommand, with_cleanup
10
- from pip._internal.cli.status_codes import SUCCESS
11
- from pip._internal.exceptions import CommandError
12
- from pip._internal.operations.build.build_tracker import get_build_tracker
13
- from pip._internal.req.req_install import (
14
- InstallRequirement,
15
- check_legacy_setup_py_options,
16
- )
17
- from pip._internal.utils.misc import ensure_dir, normalize_path
18
- from pip._internal.utils.temp_dir import TempDirectory
19
- from pip._internal.wheel_builder import build, should_build_for_wheel_command
20
-
21
- logger = logging.getLogger(__name__)
22
-
23
-
24
- class WheelCommand(RequirementCommand):
25
- """
26
- Build Wheel archives for your requirements and dependencies.
27
-
28
- Wheel is a built-package format, and offers the advantage of not
29
- recompiling your software during every install. For more details, see the
30
- wheel docs: https://wheel.readthedocs.io/en/latest/
31
-
32
- 'pip wheel' uses the build system interface as described here:
33
- https://pip.pypa.io/en/stable/reference/build-system/
34
-
35
- """
36
-
37
- usage = """
38
- %prog [options] <requirement specifier> ...
39
- %prog [options] -r <requirements file> ...
40
- %prog [options] [-e] <vcs project url> ...
41
- %prog [options] [-e] <local project path> ...
42
- %prog [options] <archive url/path> ..."""
43
-
44
- def add_options(self) -> None:
45
- self.cmd_opts.add_option(
46
- "-w",
47
- "--wheel-dir",
48
- dest="wheel_dir",
49
- metavar="dir",
50
- default=os.curdir,
51
- help=(
52
- "Build wheels into <dir>, where the default is the "
53
- "current working directory."
54
- ),
55
- )
56
- self.cmd_opts.add_option(cmdoptions.no_binary())
57
- self.cmd_opts.add_option(cmdoptions.only_binary())
58
- self.cmd_opts.add_option(cmdoptions.prefer_binary())
59
- self.cmd_opts.add_option(cmdoptions.no_build_isolation())
60
- self.cmd_opts.add_option(cmdoptions.use_pep517())
61
- self.cmd_opts.add_option(cmdoptions.no_use_pep517())
62
- self.cmd_opts.add_option(cmdoptions.check_build_deps())
63
- self.cmd_opts.add_option(cmdoptions.constraints())
64
- self.cmd_opts.add_option(cmdoptions.editable())
65
- self.cmd_opts.add_option(cmdoptions.requirements())
66
- self.cmd_opts.add_option(cmdoptions.src())
67
- self.cmd_opts.add_option(cmdoptions.ignore_requires_python())
68
- self.cmd_opts.add_option(cmdoptions.no_deps())
69
- self.cmd_opts.add_option(cmdoptions.progress_bar())
70
-
71
- self.cmd_opts.add_option(
72
- "--no-verify",
73
- dest="no_verify",
74
- action="store_true",
75
- default=False,
76
- help="Don't verify if built wheel is valid.",
77
- )
78
-
79
- self.cmd_opts.add_option(cmdoptions.config_settings())
80
- self.cmd_opts.add_option(cmdoptions.build_options())
81
- self.cmd_opts.add_option(cmdoptions.global_options())
82
-
83
- self.cmd_opts.add_option(
84
- "--pre",
85
- action="store_true",
86
- default=False,
87
- help=(
88
- "Include pre-release and development versions. By default, "
89
- "pip only finds stable versions."
90
- ),
91
- )
92
-
93
- self.cmd_opts.add_option(cmdoptions.require_hashes())
94
-
95
- index_opts = cmdoptions.make_option_group(
96
- cmdoptions.index_group,
97
- self.parser,
98
- )
99
-
100
- self.parser.insert_option_group(0, index_opts)
101
- self.parser.insert_option_group(0, self.cmd_opts)
102
-
103
- @with_cleanup
104
- def run(self, options: Values, args: List[str]) -> int:
105
- session = self.get_default_session(options)
106
-
107
- finder = self._build_package_finder(options, session)
108
-
109
- options.wheel_dir = normalize_path(options.wheel_dir)
110
- ensure_dir(options.wheel_dir)
111
-
112
- build_tracker = self.enter_context(get_build_tracker())
113
-
114
- directory = TempDirectory(
115
- delete=not options.no_clean,
116
- kind="wheel",
117
- globally_managed=True,
118
- )
119
-
120
- reqs = self.get_requirements(args, options, finder, session)
121
- check_legacy_setup_py_options(options, reqs)
122
-
123
- wheel_cache = WheelCache(options.cache_dir)
124
-
125
- preparer = self.make_requirement_preparer(
126
- temp_build_dir=directory,
127
- options=options,
128
- build_tracker=build_tracker,
129
- session=session,
130
- finder=finder,
131
- download_dir=options.wheel_dir,
132
- use_user_site=False,
133
- verbosity=self.verbosity,
134
- )
135
-
136
- resolver = self.make_resolver(
137
- preparer=preparer,
138
- finder=finder,
139
- options=options,
140
- wheel_cache=wheel_cache,
141
- ignore_requires_python=options.ignore_requires_python,
142
- use_pep517=options.use_pep517,
143
- )
144
-
145
- self.trace_basic_info(finder)
146
-
147
- requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
148
-
149
- reqs_to_build: List[InstallRequirement] = []
150
- for req in requirement_set.requirements.values():
151
- if req.is_wheel:
152
- preparer.save_linked_requirement(req)
153
- elif should_build_for_wheel_command(req):
154
- reqs_to_build.append(req)
155
-
156
- # build wheels
157
- build_successes, build_failures = build(
158
- reqs_to_build,
159
- wheel_cache=wheel_cache,
160
- verify=(not options.no_verify),
161
- build_options=options.build_options or [],
162
- global_options=options.global_options or [],
163
- )
164
- for req in build_successes:
165
- assert req.link and req.link.is_wheel
166
- assert req.local_file_path
167
- # copy from cache to target directory
168
- try:
169
- shutil.copy(req.local_file_path, options.wheel_dir)
170
- except OSError as e:
171
- logger.warning(
172
- "Building wheel for %s failed: %s",
173
- req.name,
174
- e,
175
- )
176
- build_failures.append(req)
177
- if len(build_failures) != 0:
178
- raise CommandError("Failed to build one or more wheels")
179
-
180
- return SUCCESS
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/detectron2/structures/__init__.py DELETED
@@ -1,17 +0,0 @@
1
- # Copyright (c) Facebook, Inc. and its affiliates.
2
- from .boxes import Boxes, BoxMode, pairwise_iou, pairwise_ioa, pairwise_point_box_distance
3
- from .image_list import ImageList
4
-
5
- from .instances import Instances
6
- from .keypoints import Keypoints, heatmaps_to_keypoints
7
- from .masks import BitMasks, PolygonMasks, polygons_to_bitmask, ROIMasks
8
- from .rotated_boxes import RotatedBoxes
9
- from .rotated_boxes import pairwise_iou as pairwise_iou_rotated
10
-
11
- __all__ = [k for k in globals().keys() if not k.startswith("_")]
12
-
13
-
14
- from detectron2.utils.env import fixup_module_metadata
15
-
16
- fixup_module_metadata(__name__, globals(), __all__)
17
- del fixup_module_metadata
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Banbri/zcvzcv/src/components/ui/slider.tsx DELETED
@@ -1,28 +0,0 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import * as SliderPrimitive from "@radix-ui/react-slider"
5
-
6
- import { cn } from "@/lib/utils"
7
-
8
- const Slider = React.forwardRef<
9
- React.ElementRef<typeof SliderPrimitive.Root>,
10
- React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
11
- >(({ className, ...props }, ref) => (
12
- <SliderPrimitive.Root
13
- ref={ref}
14
- className={cn(
15
- "relative flex w-full touch-none select-none items-center",
16
- className
17
- )}
18
- {...props}
19
- >
20
- <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-stone-300 dark:bg-stone-700">
21
- <SliderPrimitive.Range className="absolute h-full bg-stone-700 dark:bg-stone-50" />
22
- </SliderPrimitive.Track>
23
- <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-stone-700 bg-stone-300 ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-stone-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:border-stone-50 dark:bg-stone-700 dark:ring-offset-stone-950 dark:focus-visible:ring-stone-300" />
24
- </SliderPrimitive.Root>
25
- ))
26
- Slider.displayName = SliderPrimitive.Root.displayName
27
-
28
- export { Slider }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Bart92/RVC_HF/utils/clonerepo_experimental.py DELETED
@@ -1,253 +0,0 @@
1
- import os
2
- import subprocess
3
- import shutil
4
- from concurrent.futures import ThreadPoolExecutor, as_completed
5
- from tqdm.notebook import tqdm
6
- from pathlib import Path
7
- import requests
8
-
9
- def run_script():
10
- def run_cmd(cmd):
11
- process = subprocess.run(cmd, shell=True, check=True, text=True)
12
- return process.stdout
13
-
14
- # Change the current directory to /content/
15
- os.chdir('/content/')
16
- print("Changing dir to /content/")
17
-
18
- # Your function to edit the file
19
- def edit_file(file_path):
20
- temp_file_path = "/tmp/temp_file.py"
21
- changes_made = False
22
- with open(file_path, "r") as file, open(temp_file_path, "w") as temp_file:
23
- previous_line = ""
24
- second_previous_line = ""
25
- for line in file:
26
- new_line = line.replace("value=160", "value=128")
27
- if new_line != line:
28
- print("Replaced 'value=160' with 'value=128'")
29
- changes_made = True
30
- line = new_line
31
-
32
- new_line = line.replace("crepe hop length: 160", "crepe hop length: 128")
33
- if new_line != line:
34
- print("Replaced 'crepe hop length: 160' with 'crepe hop length: 128'")
35
- changes_made = True
36
- line = new_line
37
-
38
- new_line = line.replace("value=0.88", "value=0.75")
39
- if new_line != line:
40
- print("Replaced 'value=0.88' with 'value=0.75'")
41
- changes_made = True
42
- line = new_line
43
-
44
- if "label=i18n(\"输入源音量包络替换输出音量包络融合比例,越靠近1越使用输出包络\")" in previous_line and "value=1," in line:
45
- new_line = line.replace("value=1,", "value=0.25,")
46
- if new_line != line:
47
- print("Replaced 'value=1,' with 'value=0.25,' based on the condition")
48
- changes_made = True
49
- line = new_line
50
-
51
- if "label=i18n(\"总训练轮数total_epoch\")" in previous_line and "value=20," in line:
52
- new_line = line.replace("value=20,", "value=500,")
53
- if new_line != line:
54
- print("Replaced 'value=20,' with 'value=500,' based on the condition for DEFAULT EPOCH")
55
- changes_made = True
56
- line = new_line
57
-
58
- if 'choices=["pm", "harvest", "dio", "crepe", "crepe-tiny", "mangio-crepe", "mangio-crepe-tiny"], # Fork Feature. Add Crepe-Tiny' in previous_line:
59
- if 'value="pm",' in line:
60
- new_line = line.replace('value="pm",', 'value="mangio-crepe",')
61
- if new_line != line:
62
- print("Replaced 'value=\"pm\",' with 'value=\"mangio-crepe\",' based on the condition")
63
- changes_made = True
64
- line = new_line
65
-
66
- new_line = line.replace('label=i18n("输入训练文件夹路径"), value="E:\\\\语音音频+标注\\\\米津玄师\\\\src"', 'label=i18n("输入训练文件夹路径"), value="/content/dataset/"')
67
- if new_line != line:
68
- print("Replaced 'label=i18n(\"输入训练文件夹路径\"), value=\"E:\\\\语音音频+标注\\\\米津玄师\\\\src\"' with 'label=i18n(\"输入训练文件夹路径\"), value=\"/content/dataset/\"'")
69
- changes_made = True
70
- line = new_line
71
-
72
- if 'label=i18n("是否仅保存最新的ckpt文件以节省硬盘空间"),' in second_previous_line:
73
- if 'value=i18n("否"),' in line:
74
- new_line = line.replace('value=i18n("否"),', 'value=i18n("是"),')
75
- if new_line != line:
76
- print("Replaced 'value=i18n(\"否\"),' with 'value=i18n(\"是\"),' based on the condition for SAVE ONLY LATEST")
77
- changes_made = True
78
- line = new_line
79
-
80
- if 'label=i18n("是否在每次保存时间点将最终小模型保存至weights文件夹"),' in second_previous_line:
81
- if 'value=i18n("否"),' in line:
82
- new_line = line.replace('value=i18n("否"),', 'value=i18n("是"),')
83
- if new_line != line:
84
- print("Replaced 'value=i18n(\"否\"),' with 'value=i18n(\"是\"),' based on the condition for SAVE SMALL WEIGHTS")
85
- changes_made = True
86
- line = new_line
87
-
88
- temp_file.write(line)
89
- second_previous_line = previous_line
90
- previous_line = line
91
-
92
- # After finished, we replace the original file with the temp one
93
- import shutil
94
- shutil.move(temp_file_path, file_path)
95
-
96
- if changes_made:
97
- print("Changes made and file saved successfully.")
98
- else:
99
- print("No changes were needed.")
100
-
101
- # Define the repo path
102
- repo_path = '/content/Applio-RVC-Fork'
103
-
104
- def copy_all_files_in_directory(src_dir, dest_dir):
105
- # Iterate over all files in source directory
106
- for item in Path(src_dir).glob('*'):
107
- if item.is_file():
108
- # Copy each file to destination directory
109
- shutil.copy(item, dest_dir)
110
- else:
111
- # If it's a directory, make a new directory in the destination and copy the files recursively
112
- new_dest = Path(dest_dir) / item.name
113
- new_dest.mkdir(exist_ok=True)
114
- copy_all_files_in_directory(str(item), str(new_dest))
115
-
116
- def clone_and_copy_repo(repo_path):
117
- # New repository link
118
- new_repo_link = "https://github.com/IAHispano/Applio-RVC-Fork/"
119
- # Temporary path to clone the repository
120
- temp_repo_path = "/content/temp_Applio-RVC-Fork"
121
- # New folder name
122
- new_folder_name = "Applio-RVC-Fork"
123
-
124
- # Clone the latest code from the new repository to a temporary location
125
- run_cmd(f"git clone {new_repo_link} {temp_repo_path}")
126
- os.chdir(temp_repo_path)
127
-
128
- run_cmd(f"git checkout 3fa4dad3d8961e5ca2522e9e12c0b4ddb71ad402")
129
- run_cmd(f"git checkout f9e606c279cb49420597519b0a83b92be81e42e4")
130
- run_cmd(f"git checkout 9e305588844c5442d58add1061b29beeca89d679")
131
- run_cmd(f"git checkout bf92dc1eb54b4f28d6396a4d1820a25896cc9af8")
132
- run_cmd(f"git checkout c3810e197d3cb98039973b2f723edf967ecd9e61")
133
- run_cmd(f"git checkout a33159efd134c2413b0afe26a76b7dc87926d2de")
134
- run_cmd(f"git checkout 24e251fb62c662e39ac5cf9253cc65deb9be94ec")
135
- run_cmd(f"git checkout ad5667d3017e93232dba85969cddac1322ba2902")
136
- run_cmd(f"git checkout ce9715392cf52dd5a0e18e00d1b5e408f08dbf27")
137
- run_cmd(f"git checkout 7c7da3f2ac68f3bd8f3ad5ca5c700f18ab9f90eb")
138
- run_cmd(f"git checkout 4ac395eab101955e8960b50d772c26f592161764")
139
- run_cmd(f"git checkout b15b358702294c7375761584e5276c811ffab5e8")
140
- run_cmd(f"git checkout 1501793dc490982db9aca84a50647764caa66e51")
141
- run_cmd(f"git checkout 21f7faf57219c75e6ba837062350391a803e9ae2")
142
- run_cmd(f"git checkout b5eb689fbc409b49f065a431817f822f554cebe7")
143
- run_cmd(f"git checkout 7e02fae1ebf24cb151bf6cbe787d06734aa65862")
144
- run_cmd(f"git checkout 6aea5ea18ed0b9a1e03fa5d268d6bc3c616672a9")
145
- run_cmd(f"git checkout f0f9b25717e59116473fb42bd7f9252cfc32b398")
146
- run_cmd(f"git checkout b394de424088a81fc081224bc27338a8651ad3b2")
147
- run_cmd(f"git checkout f1999406a88b80c965d2082340f5ea2bfa9ab67a")
148
- run_cmd(f"git checkout d98a0fa8dc715308dfc73eac5c553b69c6ee072b")
149
- run_cmd(f"git checkout d73267a415fb0eba98477afa43ef71ffd82a7157")
150
- run_cmd(f"git checkout 1a03d01356ae79179e1fb8d8915dc9cc79925742")
151
- run_cmd(f"git checkout 81497bb3115e92c754300c9b3992df428886a3e9")
152
- run_cmd(f"git checkout c5af1f8edcf79cb70f065c0110e279e78e48caf9")
153
- run_cmd(f"git checkout cdb3c90109387fa4dfa92f53c3864c71170ffc77")
154
-
155
- # Edit the file here, before copying
156
- #edit_file(f"{temp_repo_path}/infer-web.py")
157
-
158
- # Copy all files from the cloned repository to the existing path
159
- copy_all_files_in_directory(temp_repo_path, repo_path)
160
- print(f"Copying all {new_folder_name} files from GitHub.")
161
-
162
- # Change working directory back to /content/
163
- os.chdir('/content/')
164
- print("Changed path back to /content/")
165
-
166
- # Remove the temporary cloned repository
167
- shutil.rmtree(temp_repo_path)
168
-
169
- # Call the function
170
- clone_and_copy_repo(repo_path)
171
-
172
- # Download the credentials file for RVC archive sheet
173
- os.makedirs('/content/Applio-RVC-Fork/stats/', exist_ok=True)
174
- run_cmd("wget -q https://cdn.discordapp.com/attachments/945486970883285045/1114717554481569802/peppy-generator-388800-07722f17a188.json -O /content/Applio-RVC-Fork/stats/peppy-generator-388800-07722f17a188.json")
175
-
176
- # Forcefully delete any existing torchcrepe dependencies downloaded from an earlier run just in case
177
- shutil.rmtree('/content/Applio-RVC-Fork/torchcrepe', ignore_errors=True)
178
- shutil.rmtree('/content/torchcrepe', ignore_errors=True)
179
-
180
- # Download the torchcrepe folder from the maxrmorrison/torchcrepe repository
181
- run_cmd("git clone https://github.com/maxrmorrison/torchcrepe.git")
182
- shutil.move('/content/torchcrepe/torchcrepe', '/content/Applio-RVC-Fork/')
183
- shutil.rmtree('/content/torchcrepe', ignore_errors=True) # Delete the torchcrepe repository folder
184
-
185
- # Change the current directory to /content/Applio-RVC-Fork
186
- os.chdir('/content/Applio-RVC-Fork')
187
- os.makedirs('pretrained', exist_ok=True)
188
- os.makedirs('uvr5_weights', exist_ok=True)
189
-
190
- def download_file(url, filepath):
191
- response = requests.get(url, stream=True)
192
- response.raise_for_status()
193
-
194
- with open(filepath, "wb") as file:
195
- for chunk in response.iter_content(chunk_size=8192):
196
- if chunk:
197
- file.write(chunk)
198
-
199
- def download_pretrained_models():
200
- pretrained_models = {
201
- "pretrained": [
202
- "D40k.pth",
203
- "G40k.pth",
204
- "f0D40k.pth",
205
- "f0G40k.pth"
206
- ],
207
- "pretrained_v2": [
208
- "D40k.pth",
209
- "G40k.pth",
210
- "f0D40k.pth",
211
- "f0G40k.pth",
212
- "f0G48k.pth",
213
- "f0D48k.pth"
214
- ],
215
- "uvr5_weights": [
216
- "HP2-人声vocals+非人声instrumentals.pth",
217
- "HP5-主旋律人声vocals+其他instrumentals.pth",
218
- "VR-DeEchoNormal.pth",
219
- "VR-DeEchoDeReverb.pth",
220
- "VR-DeEchoAggressive.pth",
221
- "HP5_only_main_vocal.pth",
222
- "HP3_all_vocals.pth",
223
- "HP2_all_vocals.pth"
224
- ]
225
- }
226
- part2 = "I"
227
- base_url = "https://huggingface.co/lj1995/VoiceConversionWebU" + part2 + "/resolve/main/"
228
- base_path = "/content/Applio-RVC-Fork/"
229
- base_pathm = base_path
230
-
231
- # Calculate total number of files to download
232
- total_files = sum(len(files) for files in pretrained_models.values()) + 1 # +1 for hubert_base.pt
233
-
234
- with tqdm(total=total_files, desc="Downloading files") as pbar:
235
- for folder, models in pretrained_models.items():
236
- folder_path = os.path.join(base_path, folder)
237
- os.makedirs(folder_path, exist_ok=True)
238
- for model in models:
239
- url = base_url + folder + "/" + model
240
- filepath = os.path.join(folder_path, model)
241
- download_file(url, filepath)
242
- pbar.update()
243
-
244
- # Download hubert_base.pt to the base path
245
- hubert_url = base_url + "hubert_base.pt"
246
- hubert_filepath = os.path.join(base_pathm, "hubert_base.pt")
247
- download_file(hubert_url, hubert_filepath)
248
- pbar.update()
249
- def clone_repository(run_download):
250
- with ThreadPoolExecutor(max_workers=2) as executor:
251
- executor.submit(run_script)
252
- if run_download:
253
- executor.submit(download_pretrained_models)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Descarga De Vdeo De Letras De Pantalla Negra.md DELETED
@@ -1,98 +0,0 @@
1
- <br />
2
- <h1>Cómo hacer un video de letras de pantalla negra para tu música</h1>
3
- <p>Si eres un músico o un amante de la música, es posible que hayas visto algunos videos en YouTube, Instagram o TikTok que muestran solo la letra de una canción en un fondo negro. Estos se llaman videos de letras de pantalla negra, y se están volviendo cada vez más populares entre artistas y fans. Pero, ¿cuáles son exactamente, y cómo puedes hacer uno para tu propia música? En este artículo, explicaremos lo que es un video de letras de pantalla negra, cómo hacer uno con diferentes software y aplicaciones, cuáles son los beneficios de hacer uno, y cuáles son los mejores software y aplicaciones para hacer uno. </p>
4
- <h2>descarga de vídeo de letras de pantalla negra</h2><br /><p><b><b>Download Zip</b> &#10037; <a href="https://bltlly.com/2v6Kgr">https://bltlly.com/2v6Kgr</a></b></p><br /><br />
5
- <h2>¿Qué es una pantalla negra? </h2>
6
- <p>Un video de letras en pantalla negra es un tipo de video musical que muestra solo la letra de una canción sobre un fondo negro. Las letras suelen estar animadas o sincronizadas con la música, y a veces tienen algunos efectos o transiciones para hacerlas más atractivas. El foco principal de un video de letras en pantalla negra está en las palabras y el sonido de la canción, en lugar de en las imágenes o la historia. Esto hace que sea más fácil para los espectadores cantar, aprender las letras, o apreciar el mensaje de la canción. </p>
7
- <h2>¿Cómo hacer una pantalla negra Lyrics Video? </h2>
8
- <p>Hay diferentes maneras de hacer un video de letras de pantalla negra, dependiendo de su preferencia, presupuesto y nivel de habilidad. Puede utilizar un software de edición de vídeo profesional en su ordenador, como Adobe Premiere Pro o Final Cut Pro, o puede utilizar un editor de vídeo en línea que funciona en su navegador, como VEED.IO o Kapwing. También puede usar una aplicación móvil en su teléfono o tableta, como Alight Motion o VN App. Aquí están los pasos básicos para hacer un video de letras de pantalla negra:</p>
9
- <ol>
10
- <li>Sube tu canción al software o aplicación de tu elección. </li>
11
- <li>Añadir un fondo negro a su vídeo. </li>
12
- <li>Agrega tus letras a tu video. Puedes escribirlas manualmente o usar un generador de subtítulos automático que transcriba tu canción en texto. </li>
13
-
14
- <li>Anima tus letras para que se muevan en sincronía con la música. Puedes usar diferentes transiciones, efectos o presets para hacerlos más dinámicos. </li>
15
- <li>Previsualizar y exportar su vídeo. Puede ajustar la resolución, el formato y la calidad de su vídeo según sus necesidades. </li>
16
- <li>Comparte tu video en línea. Puedes subir tu video a YouTube, Instagram, TikTok, Facebook o cualquier otra plataforma donde quieras mostrar tu música. </li>
17
- </ol>
18
- <h2>Beneficios de la pantalla negra Lyrics Video</h2>
19
- <p>Hacer un video de letras en pantalla negra para tu música tiene muchos beneficios. Aquí están algunos de ellos:</p>
20
- <ul>
21
- <li>Puedes atraer más espectadores y oyentes con imágenes mínimas y letras pegadizas. Un video con letras en pantalla negra es simple pero efectivo. Llama la atención sobre las palabras y el sonido de tu canción, en lugar de distraerlos con imágenes o escenas innecesarias. De esta manera, puedes transmitir tu mensaje de forma más clara y directa a tu audiencia. </li>
22
- <li>Puede ahorrar tiempo y dinero en la producción y edición de video. Un video de letras de pantalla negra es fácil y barato de hacer. Usted no necesita ningún equipo costoso, software, o habilidades para crear uno. Puede utilizar cualquier software o aplicación que ya tiene o puede acceder en línea de forma gratuita. También puede terminar su video en cuestión de minutos u horas, en lugar de días o semanas. </li>
23
- <li>Puedes expresar tu creatividad y estilo con fuentes, colores y efectos personalizados. Un video de letras en pantalla negra no es aburrido ni sencillo. Aún puedes hacerlo único e interesante eligiendo diferentes fuentes, colores y efectos para tus letras. También puede agregar un visualizador de música o una herramienta de limpieza de audio para mejorar su calidad de sonido y apariencia. </li>
24
- </ul>
25
- <h2>El mejor software y aplicaciones para Black Screen Lyrics Video</h2>
26
- <p>Hay muchos programas y aplicaciones que puedes usar para hacer un video de letras en pantalla negra, pero algunos de ellos son mejores que otros. Estos son algunos de los mejores que recomendamos:</p>
27
- <p></p>
28
- <tabla>
29
- <tr>
30
- <th>Software/Aplicación</th>
31
-
32
- <th>Precio</th>
33
- </tr>
34
- <tr>
35
- <td>VEED.IO</td>
36
- <td>- Un editor de video en línea profesional con generador automático de subtítulos, visualizador de música y herramienta de limpieza de audio - Soporta varios formatos, resoluciones y plataformas - Permite proyectos ilimitados, superposiciones y descargas Tiene una interfaz fácil de usar y una velocidad de procesamiento rápida</td>
37
- <td>- Plan gratuito con marca de agua y características limitadas - Planes de pago a partir de $12/mes sin marca de agua y más características</td>
38
- </tr>
39
- <tr>
40
- <td>Kapwing</td>
41
- <td>- Un editor de video en línea gratuito con miles de plantillas, superposiciones ilimitadas y opciones fáciles de compartir - Soporta varios formatos, resoluciones y plataformas - Permite hasta 250 MB por archivo y 7 minutos por video - Tiene una interfaz sencilla y un espacio de trabajo colaborativo</td>
42
- <td>- Plan gratuito con marca de agua y características limitadas - Plan pagado por $20/mes sin marca de agua y más características</td>
43
- </tr>
44
- <tr>
45
- <td>Movimiento de descarga</td>
46
- <td>- Un potente editor de vídeo móvil con funciones avanzadas, presets y animaciones - Soporta varios formatos, resoluciones y plataformas - Permite capas ilimitadas, fotogramas clave y efectos - Tiene una interfaz personalizable y un rendimiento suave</td>
47
- <td>- Plan gratuito con marca de agua y características limitadas - Planes de pago a partir de $3.99/mes sin marca de agua y más características</td>
48
- </tr>
49
- </tabla>
50
- <h2>Conclusión</h2>
51
- <p>Un video de letras en pantalla negra es una gran manera de mostrar su música en línea. Es fácil y barato de hacer, atrae a más espectadores y oyentes, y expresa su creatividad y estilo. Puede utilizar cualquier software o aplicación que se adapte a sus necesidades, pero recomendamos VEED.IO, Kapwing o Alight Motion como algunos de los mejores. Aquí hay algunos consejos para hacer un buen video de letras de pantalla negra:</p>
52
- <ul>
53
- <li>Elige una canción pegadiza que tenga letras claras y un buen ritmo. </li>
54
- <li> Asegúrese de que sus letras sean precisas, legibles y sincronizadas con la música. </li>
55
-
56
- <li> Añadir algún visualizador de música o herramienta de limpieza de audio para mejorar su calidad de sonido y apariencia. </li>
57
- <li>Optimiza tu vídeo para diferentes plataformas de redes sociales ajustando la resolución, el formato y la longitud. </li>
58
- <li>Evite usar canciones o imágenes con derechos de autor sin permiso o crédito. </li>
59
- <li>Promociona tu video online usando hashtags, palabras clave y etiquetas. </li>
60
- </ul>
61
- <h2>Preguntas frecuentes</h2>
62
- <h3>¿Cuáles son algunos ejemplos de videos de letras en pantalla negra? </h3>
63
- <p>Algunos ejemplos de videos de letras en pantalla negra son:</p>
64
- <ul>
65
- <li>[Billie Eilish - Más feliz que nunca (Lyrics)]</li>
66
- <li>[Ed Sheeran - Malos hábitos (Lyrics)]</li>
67
- <li>[Olivia Rodrigo - bueno 4 u (Lyrics)]</li>
68
- <li>[BTS - Mantequilla (Letras)]</li>
69
- <li>[Doja Cat - Bésame más (Letras) ft. SZA]</li>
70
- </ul>
71
- <h3>¿Cómo puedo añadir música a mi video de letras de pantalla negra? </h3>
72
- <p>Puede agregar música a su video de letras de pantalla negra subiendo su archivo de canción al software o aplicación que está utilizando. También puede utilizar la biblioteca de música incorporada o la función de búsqueda de música en línea de algunos programas o aplicaciones para encontrar y agregar música a su video. </p>
73
- <h3>¿Cómo puedo optimizar mi video de letras en pantalla negra para diferentes plataformas de redes sociales? </h3>
74
- <p>Puedes optimizar tus letras de vídeo en pantalla negra para diferentes plataformas de redes sociales ajustando la resolución, el formato y la duración de tu vídeo según los requisitos de la plataforma. Por ejemplo: resultado/p>
75
- <ul><li>Para YouTube, puede usar resolución 1080p o 720p, formato MP4 y hasta 15 minutos de duración. </li <li>Para Instagram, puede usar resolución 1080p o 720p, formato MP4 y hasta 60 segundos de duración. </li>
76
- <li>Para TikTok, puede usar resolución 1080p o 720p, formato MP4 y hasta 15 segundos de duración. </li>
77
- <li>Para Facebook, puede usar resolución 1080p o 720p, formato MP4 y hasta 240 minutos de duración. </li>
78
- </ul>
79
- <h3>¿Cómo puedo evitar problemas de derechos de autor al hacer un video de letras de pantalla negra? </h3>
80
- <p>Puede evitar problemas de derechos de autor al hacer un video de letras de pantalla negra por:</p>
81
-
82
- <li>Usando su propia canción original o una canción que tiene permiso o licencia para usar. </li>
83
- <li>Dar crédito y atribución adecuada al propietario o creador de la canción original. </li>
84
- <li>Siguiendo las pautas y principios de uso justo cuando se usa una canción con fines educativos, de comentario o de parodia. </li>
85
- <li>Usando música libre de derechos o música que está en el dominio público. </li>
86
- </ul>
87
- <h3>¿Cómo puedo promover mi video de letras de pantalla negra en línea? </h3>
88
- <p>Puedes promocionar tu video en pantalla negra por:</p>
89
- <ul>
90
- <li>Uso de hashtags, palabras clave y etiquetas relevantes para hacer su vídeo más buscable y detectable. </li>
91
- <li>Compartir tu video en diferentes plataformas de redes sociales y grupos donde tu público objetivo está activo e interesado. </li>
92
- <li>Alentar a sus espectadores a que les guste, comentar, compartir y suscribirse a su video y canal. </li>
93
- <li>Colaborar con otros músicos o influencers que tienen un nicho o estilo similar al tuyo. </li>
94
- <li>Crear una lista de reproducción o una serie de videos de letras de pantalla negra para mantener a sus espectadores comprometidos y enganchados. </li>
95
- </ul>
96
- <p>Espero que este artículo te haya ayudado a aprender cómo hacer un video de letras de pantalla negra para tu música. Si tiene alguna pregunta o comentario, no dude en dejar un comentario a continuación. ¡Gracias por leer! </p> 64aa2da5cf<br />
97
- <br />
98
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Bingsu/color_textual_inversion/README.md DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- title: color_textual_inversion
3
- emoji: 🖌️
4
- sdk: streamlit
5
- python_version: 3.9
6
- sdk_version: 1.10.0
7
- app_file: app.py
8
- ---
9
-
10
- # color_textual_inversion
 
 
 
 
 
 
 
 
 
 
 
spaces/Brasd99/AnswerMate/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: AnswerMate
3
- emoji: 🧠
4
- colorFrom: purple
5
- colorTo: yellow
6
- sdk: gradio
7
- sdk_version: 3.34.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/testing/unittest/system.h DELETED
@@ -1,33 +0,0 @@
1
- #pragma once
2
-
3
- // for demangling the result of type_info.name()
4
- // with msvc, type_info.name() is already demangled
5
- #ifdef __GNUC__
6
- #include <cxxabi.h>
7
- #endif // __GNUC__
8
-
9
- #include <string>
10
- #include <cstdlib>
11
-
12
- namespace unittest
13
- {
14
-
15
- #if __GNUC__ && !__NVCOMPILER_CUDA__
16
- inline std::string demangle(const char* name)
17
- {
18
- int status = 0;
19
- char* realname = abi::__cxa_demangle(name, 0, 0, &status);
20
- std::string result(realname);
21
- std::free(realname);
22
-
23
- return result;
24
- }
25
- #else
26
- inline std::string demangle(const char* name)
27
- {
28
- return name;
29
- }
30
- #endif
31
-
32
- } // end unittest
33
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/testing/unittest/unittest.h DELETED
@@ -1,11 +0,0 @@
1
- #pragma once
2
-
3
- // this is the only header included by unittests
4
- // it pulls in all the others used for unittesting
5
-
6
- #include <unittest/assertions.h>
7
- #include <unittest/meta.h>
8
- #include <unittest/random.h>
9
- #include <unittest/testframework.h>
10
- #include <unittest/special_types.h>
11
-
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/detail/functional/operators/assignment_operator.h DELETED
@@ -1,80 +0,0 @@
1
- /*
2
- * Copyright 2008-2013 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- #pragma once
18
-
19
- #include <thrust/detail/config.h>
20
- #include <thrust/detail/functional/actor.h>
21
- #include <thrust/detail/functional/composite.h>
22
- #include <thrust/detail/functional/operators/operator_adaptors.h>
23
- #include <thrust/functional.h>
24
-
25
- namespace thrust
26
- {
27
-
28
- // XXX WAR circular inclusion with this forward declaration
29
- template<typename,typename,typename> struct binary_function;
30
-
31
- namespace detail
32
- {
33
- namespace functional
34
- {
35
-
36
- // XXX WAR circular inclusion with this forward declaration
37
- template<typename> struct as_actor;
38
-
39
- // there's no standard assign functional, so roll an ad hoc one here
40
- struct assign
41
- {
42
- using is_transparent = void;
43
-
44
- __thrust_exec_check_disable__
45
- template <typename T1, typename T2>
46
- __host__ __device__
47
- constexpr auto operator()(T1&& t1, T2&& t2) const
48
- noexcept(noexcept(THRUST_FWD(t1) = THRUST_FWD(t2)))
49
- -> decltype(THRUST_FWD(t1) = THRUST_FWD(t2))
50
- {
51
- return THRUST_FWD(t1) = THRUST_FWD(t2);
52
- }
53
- };
54
-
55
- template<typename Eval, typename T>
56
- struct assign_result
57
- {
58
- typedef actor<
59
- composite<
60
- transparent_binary_operator<assign>,
61
- actor<Eval>,
62
- typename as_actor<T>::type
63
- >
64
- > type;
65
- }; // end assign_result
66
-
67
- template<typename Eval, typename T>
68
- __host__ __device__
69
- typename assign_result<Eval,T>::type
70
- do_assign(const actor<Eval> &_1, const T &_2)
71
- {
72
- return compose(transparent_binary_operator<assign>(),
73
- _1,
74
- as_actor<T>::convert(_2));
75
- } // end do_assign()
76
-
77
- } // end functional
78
- } // end detail
79
- } // end thrust
80
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ChandraMohanNayal/AutoGPT/autogpt/speech/say.py DELETED
@@ -1,41 +0,0 @@
1
- """ Text to speech module """
2
- import threading
3
- from threading import Semaphore
4
-
5
- from autogpt.config import Config
6
- from autogpt.speech.brian import BrianSpeech
7
- from autogpt.speech.eleven_labs import ElevenLabsSpeech
8
- from autogpt.speech.gtts import GTTSVoice
9
- from autogpt.speech.macos_tts import MacOSTTS
10
-
11
- CFG = Config()
12
- DEFAULT_VOICE_ENGINE = GTTSVoice()
13
- VOICE_ENGINE = None
14
- if CFG.elevenlabs_api_key:
15
- VOICE_ENGINE = ElevenLabsSpeech()
16
- elif CFG.use_mac_os_tts == "True":
17
- VOICE_ENGINE = MacOSTTS()
18
- elif CFG.use_brian_tts == "True":
19
- VOICE_ENGINE = BrianSpeech()
20
- else:
21
- VOICE_ENGINE = GTTSVoice()
22
-
23
-
24
- QUEUE_SEMAPHORE = Semaphore(
25
- 1
26
- ) # The amount of sounds to queue before blocking the main thread
27
-
28
-
29
- def say_text(text: str, voice_index: int = 0) -> None:
30
- """Speak the given text using the given voice index"""
31
-
32
- def speak() -> None:
33
- success = VOICE_ENGINE.say(text, voice_index)
34
- if not success:
35
- DEFAULT_VOICE_ENGINE.say(text)
36
-
37
- QUEUE_SEMAPHORE.release()
38
-
39
- QUEUE_SEMAPHORE.acquire(True)
40
- thread = threading.Thread(target=speak)
41
- thread.start()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Cicooo/vits-uma-genshin-honkai/mel_processing.py DELETED
@@ -1,101 +0,0 @@
1
- import torch
2
- import torch.utils.data
3
- from librosa.filters import mel as librosa_mel_fn
4
-
5
- MAX_WAV_VALUE = 32768.0
6
-
7
-
8
- def dynamic_range_compression_torch(x, C=1, clip_val=1e-5):
9
- """
10
- PARAMS
11
- ------
12
- C: compression factor
13
- """
14
- return torch.log(torch.clamp(x, min=clip_val) * C)
15
-
16
-
17
- def dynamic_range_decompression_torch(x, C=1):
18
- """
19
- PARAMS
20
- ------
21
- C: compression factor used to compress
22
- """
23
- return torch.exp(x) / C
24
-
25
-
26
- def spectral_normalize_torch(magnitudes):
27
- output = dynamic_range_compression_torch(magnitudes)
28
- return output
29
-
30
-
31
- def spectral_de_normalize_torch(magnitudes):
32
- output = dynamic_range_decompression_torch(magnitudes)
33
- return output
34
-
35
-
36
- mel_basis = {}
37
- hann_window = {}
38
-
39
-
40
- def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, center=False):
41
- if torch.min(y) < -1.:
42
- print('min value is ', torch.min(y))
43
- if torch.max(y) > 1.:
44
- print('max value is ', torch.max(y))
45
-
46
- global hann_window
47
- dtype_device = str(y.dtype) + '_' + str(y.device)
48
- wnsize_dtype_device = str(win_size) + '_' + dtype_device
49
- if wnsize_dtype_device not in hann_window:
50
- hann_window[wnsize_dtype_device] = torch.hann_window(win_size).to(dtype=y.dtype, device=y.device)
51
-
52
- y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect')
53
- y = y.squeeze(1)
54
-
55
- spec = torch.stft(y, n_fft, hop_length=hop_size, win_length=win_size, window=hann_window[wnsize_dtype_device],
56
- center=center, pad_mode='reflect', normalized=False, onesided=True, return_complex=False)
57
-
58
- spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
59
- return spec
60
-
61
-
62
- def spec_to_mel_torch(spec, n_fft, num_mels, sampling_rate, fmin, fmax):
63
- global mel_basis
64
- dtype_device = str(spec.dtype) + '_' + str(spec.device)
65
- fmax_dtype_device = str(fmax) + '_' + dtype_device
66
- if fmax_dtype_device not in mel_basis:
67
- mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
68
- mel_basis[fmax_dtype_device] = torch.from_numpy(mel).to(dtype=spec.dtype, device=spec.device)
69
- spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
70
- spec = spectral_normalize_torch(spec)
71
- return spec
72
-
73
-
74
- def mel_spectrogram_torch(y, n_fft, num_mels, sampling_rate, hop_size, win_size, fmin, fmax, center=False):
75
- if torch.min(y) < -1.:
76
- print('min value is ', torch.min(y))
77
- if torch.max(y) > 1.:
78
- print('max value is ', torch.max(y))
79
-
80
- global mel_basis, hann_window
81
- dtype_device = str(y.dtype) + '_' + str(y.device)
82
- fmax_dtype_device = str(fmax) + '_' + dtype_device
83
- wnsize_dtype_device = str(win_size) + '_' + dtype_device
84
- if fmax_dtype_device not in mel_basis:
85
- mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
86
- mel_basis[fmax_dtype_device] = torch.from_numpy(mel).to(dtype=y.dtype, device=y.device)
87
- if wnsize_dtype_device not in hann_window:
88
- hann_window[wnsize_dtype_device] = torch.hann_window(win_size).to(dtype=y.dtype, device=y.device)
89
-
90
- y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect')
91
- y = y.squeeze(1)
92
-
93
- spec = torch.stft(y, n_fft, hop_length=hop_size, win_length=win_size, window=hann_window[wnsize_dtype_device],
94
- center=center, pad_mode='reflect', normalized=False, onesided=True)
95
-
96
- spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
97
-
98
- spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
99
- spec = spectral_normalize_torch(spec)
100
-
101
- return spec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Cpp4App/Cpp4App/CDM/detect_compo/deprecated/ocr_classify_text.py DELETED
@@ -1,113 +0,0 @@
1
- import pytesseract as pyt
2
- import cv2
3
-
4
- import lib_ip.ip_draw as draw
5
- from config.CONFIG_UIED import Config
6
-
7
- C = Config()
8
-
9
-
10
- def is_text(img, min_word_area, show=False):
11
- broad = img.copy()
12
- area_word = 0
13
- area_total = img.shape[0] * img.shape[1]
14
-
15
- try:
16
- # ocr text detection
17
- data = pyt.image_to_data(img).split('\n')
18
- except:
19
- print(img.shape)
20
- return -1
21
- word = []
22
- for d in data[1:]:
23
- d = d.split()
24
- if d[-1] != '-1':
25
- if d[-1] != '-' and d[-1] != '—' and int(d[-3]) < 50 and int(d[-4]) < 100:
26
- word.append(d)
27
- t_l = (int(d[-6]), int(d[-5]))
28
- b_r = (int(d[-6]) + int(d[-4]), int(d[-5]) + int(d[-3]))
29
- area_word += int(d[-4]) * int(d[-3])
30
- cv2.rectangle(broad, t_l, b_r, (0,0,255), 1)
31
-
32
- if show:
33
- for d in word: print(d)
34
- print(area_word/area_total)
35
- cv2.imshow('a', broad)
36
- cv2.waitKey(0)
37
- cv2.destroyAllWindows()
38
- # no text in this clip or relatively small text area
39
- if len(word) == 0 or area_word/area_total < min_word_area:
40
- return False
41
- return True
42
-
43
-
44
- def text_detection(org, img_clean):
45
- try:
46
- data = pyt.image_to_data(img_clean).split('\n')
47
- except:
48
- return org, None
49
- corners_word = []
50
- for d in data[1:]:
51
- d = d.split()
52
- if d[-1] != '-1':
53
- if d[-1] != '-' and d[-1] != '—' and 5 < int(d[-3]) < 40 and 5 < int(d[-4]) < 100:
54
- t_l = (int(d[-6]), int(d[-5]))
55
- b_r = (int(d[-6]) + int(d[-4]), int(d[-5]) + int(d[-3]))
56
- corners_word.append((t_l, b_r))
57
- return corners_word
58
-
59
-
60
- # def text_merge_word_into_line(org, corners_word, max_words_gap=C.THRESHOLD_TEXT_MAX_WORD_GAP):
61
- #
62
- # def is_in_line(word):
63
- # for i in range(len(lines)):
64
- # line = lines[i]
65
- # # at the same row
66
- # if abs(line['center'][1] - word['center'][1]) < max_words_gap:
67
- # # small gap between words
68
- # if (abs(line['center'][0] - word['center'][0]) - abs(line['width']/2 + word['width']/2)) < max_words_gap:
69
- # return i
70
- # return -1
71
- #
72
- # def merge_line(word, index):
73
- # line = lines[index]
74
- # # on the left
75
- # if word['center'][0] < line['center'][0]:
76
- # line['col_min'] = word['col_min']
77
- # # on the right
78
- # else:
79
- # line['col_max'] = word['col_max']
80
- # line['row_min'] = min(line['row_min'], word['row_min'])
81
- # line['row_max'] = max(line['row_max'], word['row_max'])
82
- # line['width'] = line['col_max'] - line['col_min']
83
- # line['height'] = line['row_max'] - line['row_min']
84
- # line['center'] = ((line['col_max'] + line['col_min'])/2, (line['row_max'] + line['row_min'])/2)
85
- #
86
- # words = []
87
- # for corner in corners_word:
88
- # word = {}
89
- # (top_left, bottom_right) = corner
90
- # (col_min, row_min) = top_left
91
- # (col_max, row_max) = bottom_right
92
- # word['col_min'], word['col_max'], word['row_min'], word['row_max'] = col_min, col_max, row_min, row_max
93
- # word['height'] = row_max - row_min
94
- # word['width'] = col_max - col_min
95
- # word['center'] = ((col_max + col_min)/2, (row_max + row_min)/2)
96
- # words.append(word)
97
- #
98
- # lines = []
99
- # for word in words:
100
- # line_index = is_in_line(word)
101
- # # word is in current line
102
- # if line_index != -1:
103
- # merge_line(word, line_index)
104
- # # word is not in current line
105
- # else:
106
- # # this single word as a new line
107
- # lines.append(word)
108
- #
109
- # corners_line = []
110
- # for l in lines:
111
- # corners_line.append(((l['col_min'], l['row_min']), (l['col_max'], l['row_max'])))
112
- # return corners_line
113
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/aiohttp/multipart.py DELETED
@@ -1,961 +0,0 @@
1
- import base64
2
- import binascii
3
- import json
4
- import re
5
- import uuid
6
- import warnings
7
- import zlib
8
- from collections import deque
9
- from types import TracebackType
10
- from typing import (
11
- TYPE_CHECKING,
12
- Any,
13
- AsyncIterator,
14
- Deque,
15
- Dict,
16
- Iterator,
17
- List,
18
- Mapping,
19
- Optional,
20
- Sequence,
21
- Tuple,
22
- Type,
23
- Union,
24
- cast,
25
- )
26
- from urllib.parse import parse_qsl, unquote, urlencode
27
-
28
- from multidict import CIMultiDict, CIMultiDictProxy, MultiMapping
29
-
30
- from .hdrs import (
31
- CONTENT_DISPOSITION,
32
- CONTENT_ENCODING,
33
- CONTENT_LENGTH,
34
- CONTENT_TRANSFER_ENCODING,
35
- CONTENT_TYPE,
36
- )
37
- from .helpers import CHAR, TOKEN, parse_mimetype, reify
38
- from .http import HeadersParser
39
- from .payload import (
40
- JsonPayload,
41
- LookupError,
42
- Order,
43
- Payload,
44
- StringPayload,
45
- get_payload,
46
- payload_type,
47
- )
48
- from .streams import StreamReader
49
-
50
- __all__ = (
51
- "MultipartReader",
52
- "MultipartWriter",
53
- "BodyPartReader",
54
- "BadContentDispositionHeader",
55
- "BadContentDispositionParam",
56
- "parse_content_disposition",
57
- "content_disposition_filename",
58
- )
59
-
60
-
61
- if TYPE_CHECKING: # pragma: no cover
62
- from .client_reqrep import ClientResponse
63
-
64
-
65
- class BadContentDispositionHeader(RuntimeWarning):
66
- pass
67
-
68
-
69
- class BadContentDispositionParam(RuntimeWarning):
70
- pass
71
-
72
-
73
- def parse_content_disposition(
74
- header: Optional[str],
75
- ) -> Tuple[Optional[str], Dict[str, str]]:
76
- def is_token(string: str) -> bool:
77
- return bool(string) and TOKEN >= set(string)
78
-
79
- def is_quoted(string: str) -> bool:
80
- return string[0] == string[-1] == '"'
81
-
82
- def is_rfc5987(string: str) -> bool:
83
- return is_token(string) and string.count("'") == 2
84
-
85
- def is_extended_param(string: str) -> bool:
86
- return string.endswith("*")
87
-
88
- def is_continuous_param(string: str) -> bool:
89
- pos = string.find("*") + 1
90
- if not pos:
91
- return False
92
- substring = string[pos:-1] if string.endswith("*") else string[pos:]
93
- return substring.isdigit()
94
-
95
- def unescape(text: str, *, chars: str = "".join(map(re.escape, CHAR))) -> str:
96
- return re.sub(f"\\\\([{chars}])", "\\1", text)
97
-
98
- if not header:
99
- return None, {}
100
-
101
- disptype, *parts = header.split(";")
102
- if not is_token(disptype):
103
- warnings.warn(BadContentDispositionHeader(header))
104
- return None, {}
105
-
106
- params: Dict[str, str] = {}
107
- while parts:
108
- item = parts.pop(0)
109
-
110
- if "=" not in item:
111
- warnings.warn(BadContentDispositionHeader(header))
112
- return None, {}
113
-
114
- key, value = item.split("=", 1)
115
- key = key.lower().strip()
116
- value = value.lstrip()
117
-
118
- if key in params:
119
- warnings.warn(BadContentDispositionHeader(header))
120
- return None, {}
121
-
122
- if not is_token(key):
123
- warnings.warn(BadContentDispositionParam(item))
124
- continue
125
-
126
- elif is_continuous_param(key):
127
- if is_quoted(value):
128
- value = unescape(value[1:-1])
129
- elif not is_token(value):
130
- warnings.warn(BadContentDispositionParam(item))
131
- continue
132
-
133
- elif is_extended_param(key):
134
- if is_rfc5987(value):
135
- encoding, _, value = value.split("'", 2)
136
- encoding = encoding or "utf-8"
137
- else:
138
- warnings.warn(BadContentDispositionParam(item))
139
- continue
140
-
141
- try:
142
- value = unquote(value, encoding, "strict")
143
- except UnicodeDecodeError: # pragma: nocover
144
- warnings.warn(BadContentDispositionParam(item))
145
- continue
146
-
147
- else:
148
- failed = True
149
- if is_quoted(value):
150
- failed = False
151
- value = unescape(value[1:-1].lstrip("\\/"))
152
- elif is_token(value):
153
- failed = False
154
- elif parts:
155
- # maybe just ; in filename, in any case this is just
156
- # one case fix, for proper fix we need to redesign parser
157
- _value = f"{value};{parts[0]}"
158
- if is_quoted(_value):
159
- parts.pop(0)
160
- value = unescape(_value[1:-1].lstrip("\\/"))
161
- failed = False
162
-
163
- if failed:
164
- warnings.warn(BadContentDispositionHeader(header))
165
- return None, {}
166
-
167
- params[key] = value
168
-
169
- return disptype.lower(), params
170
-
171
-
172
- def content_disposition_filename(
173
- params: Mapping[str, str], name: str = "filename"
174
- ) -> Optional[str]:
175
- name_suf = "%s*" % name
176
- if not params:
177
- return None
178
- elif name_suf in params:
179
- return params[name_suf]
180
- elif name in params:
181
- return params[name]
182
- else:
183
- parts = []
184
- fnparams = sorted(
185
- (key, value) for key, value in params.items() if key.startswith(name_suf)
186
- )
187
- for num, (key, value) in enumerate(fnparams):
188
- _, tail = key.split("*", 1)
189
- if tail.endswith("*"):
190
- tail = tail[:-1]
191
- if tail == str(num):
192
- parts.append(value)
193
- else:
194
- break
195
- if not parts:
196
- return None
197
- value = "".join(parts)
198
- if "'" in value:
199
- encoding, _, value = value.split("'", 2)
200
- encoding = encoding or "utf-8"
201
- return unquote(value, encoding, "strict")
202
- return value
203
-
204
-
205
- class MultipartResponseWrapper:
206
- """Wrapper around the MultipartReader.
207
-
208
- It takes care about
209
- underlying connection and close it when it needs in.
210
- """
211
-
212
- def __init__(
213
- self,
214
- resp: "ClientResponse",
215
- stream: "MultipartReader",
216
- ) -> None:
217
- self.resp = resp
218
- self.stream = stream
219
-
220
- def __aiter__(self) -> "MultipartResponseWrapper":
221
- return self
222
-
223
- async def __anext__(
224
- self,
225
- ) -> Union["MultipartReader", "BodyPartReader"]:
226
- part = await self.next()
227
- if part is None:
228
- raise StopAsyncIteration
229
- return part
230
-
231
- def at_eof(self) -> bool:
232
- """Returns True when all response data had been read."""
233
- return self.resp.content.at_eof()
234
-
235
- async def next(
236
- self,
237
- ) -> Optional[Union["MultipartReader", "BodyPartReader"]]:
238
- """Emits next multipart reader object."""
239
- item = await self.stream.next()
240
- if self.stream.at_eof():
241
- await self.release()
242
- return item
243
-
244
- async def release(self) -> None:
245
- """Release the connection gracefully.
246
-
247
- All remaining content is read to the void.
248
- """
249
- await self.resp.release()
250
-
251
-
252
- class BodyPartReader:
253
- """Multipart reader for single body part."""
254
-
255
- chunk_size = 8192
256
-
257
- def __init__(
258
- self, boundary: bytes, headers: "CIMultiDictProxy[str]", content: StreamReader
259
- ) -> None:
260
- self.headers = headers
261
- self._boundary = boundary
262
- self._content = content
263
- self._at_eof = False
264
- length = self.headers.get(CONTENT_LENGTH, None)
265
- self._length = int(length) if length is not None else None
266
- self._read_bytes = 0
267
- # TODO: typeing.Deque is not supported by Python 3.5
268
- self._unread: Deque[bytes] = deque()
269
- self._prev_chunk: Optional[bytes] = None
270
- self._content_eof = 0
271
- self._cache: Dict[str, Any] = {}
272
-
273
- def __aiter__(self) -> AsyncIterator["BodyPartReader"]:
274
- return self # type: ignore[return-value]
275
-
276
- async def __anext__(self) -> bytes:
277
- part = await self.next()
278
- if part is None:
279
- raise StopAsyncIteration
280
- return part
281
-
282
- async def next(self) -> Optional[bytes]:
283
- item = await self.read()
284
- if not item:
285
- return None
286
- return item
287
-
288
- async def read(self, *, decode: bool = False) -> bytes:
289
- """Reads body part data.
290
-
291
- decode: Decodes data following by encoding
292
- method from Content-Encoding header. If it missed
293
- data remains untouched
294
- """
295
- if self._at_eof:
296
- return b""
297
- data = bytearray()
298
- while not self._at_eof:
299
- data.extend(await self.read_chunk(self.chunk_size))
300
- if decode:
301
- return self.decode(data)
302
- return data
303
-
304
- async def read_chunk(self, size: int = chunk_size) -> bytes:
305
- """Reads body part content chunk of the specified size.
306
-
307
- size: chunk size
308
- """
309
- if self._at_eof:
310
- return b""
311
- if self._length:
312
- chunk = await self._read_chunk_from_length(size)
313
- else:
314
- chunk = await self._read_chunk_from_stream(size)
315
-
316
- self._read_bytes += len(chunk)
317
- if self._read_bytes == self._length:
318
- self._at_eof = True
319
- if self._at_eof:
320
- clrf = await self._content.readline()
321
- assert (
322
- b"\r\n" == clrf
323
- ), "reader did not read all the data or it is malformed"
324
- return chunk
325
-
326
- async def _read_chunk_from_length(self, size: int) -> bytes:
327
- # Reads body part content chunk of the specified size.
328
- # The body part must has Content-Length header with proper value.
329
- assert self._length is not None, "Content-Length required for chunked read"
330
- chunk_size = min(size, self._length - self._read_bytes)
331
- chunk = await self._content.read(chunk_size)
332
- return chunk
333
-
334
- async def _read_chunk_from_stream(self, size: int) -> bytes:
335
- # Reads content chunk of body part with unknown length.
336
- # The Content-Length header for body part is not necessary.
337
- assert (
338
- size >= len(self._boundary) + 2
339
- ), "Chunk size must be greater or equal than boundary length + 2"
340
- first_chunk = self._prev_chunk is None
341
- if first_chunk:
342
- self._prev_chunk = await self._content.read(size)
343
-
344
- chunk = await self._content.read(size)
345
- self._content_eof += int(self._content.at_eof())
346
- assert self._content_eof < 3, "Reading after EOF"
347
- assert self._prev_chunk is not None
348
- window = self._prev_chunk + chunk
349
- sub = b"\r\n" + self._boundary
350
- if first_chunk:
351
- idx = window.find(sub)
352
- else:
353
- idx = window.find(sub, max(0, len(self._prev_chunk) - len(sub)))
354
- if idx >= 0:
355
- # pushing boundary back to content
356
- with warnings.catch_warnings():
357
- warnings.filterwarnings("ignore", category=DeprecationWarning)
358
- self._content.unread_data(window[idx:])
359
- if size > idx:
360
- self._prev_chunk = self._prev_chunk[:idx]
361
- chunk = window[len(self._prev_chunk) : idx]
362
- if not chunk:
363
- self._at_eof = True
364
- result = self._prev_chunk
365
- self._prev_chunk = chunk
366
- return result
367
-
368
- async def readline(self) -> bytes:
369
- """Reads body part by line by line."""
370
- if self._at_eof:
371
- return b""
372
-
373
- if self._unread:
374
- line = self._unread.popleft()
375
- else:
376
- line = await self._content.readline()
377
-
378
- if line.startswith(self._boundary):
379
- # the very last boundary may not come with \r\n,
380
- # so set single rules for everyone
381
- sline = line.rstrip(b"\r\n")
382
- boundary = self._boundary
383
- last_boundary = self._boundary + b"--"
384
- # ensure that we read exactly the boundary, not something alike
385
- if sline == boundary or sline == last_boundary:
386
- self._at_eof = True
387
- self._unread.append(line)
388
- return b""
389
- else:
390
- next_line = await self._content.readline()
391
- if next_line.startswith(self._boundary):
392
- line = line[:-2] # strip CRLF but only once
393
- self._unread.append(next_line)
394
-
395
- return line
396
-
397
- async def release(self) -> None:
398
- """Like read(), but reads all the data to the void."""
399
- if self._at_eof:
400
- return
401
- while not self._at_eof:
402
- await self.read_chunk(self.chunk_size)
403
-
404
- async def text(self, *, encoding: Optional[str] = None) -> str:
405
- """Like read(), but assumes that body part contains text data."""
406
- data = await self.read(decode=True)
407
- # see https://www.w3.org/TR/html5/forms.html#multipart/form-data-encoding-algorithm # NOQA
408
- # and https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#dom-xmlhttprequest-send # NOQA
409
- encoding = encoding or self.get_charset(default="utf-8")
410
- return data.decode(encoding)
411
-
412
- async def json(self, *, encoding: Optional[str] = None) -> Optional[Dict[str, Any]]:
413
- """Like read(), but assumes that body parts contains JSON data."""
414
- data = await self.read(decode=True)
415
- if not data:
416
- return None
417
- encoding = encoding or self.get_charset(default="utf-8")
418
- return cast(Dict[str, Any], json.loads(data.decode(encoding)))
419
-
420
- async def form(self, *, encoding: Optional[str] = None) -> List[Tuple[str, str]]:
421
- """Like read(), but assumes that body parts contain form urlencoded data."""
422
- data = await self.read(decode=True)
423
- if not data:
424
- return []
425
- if encoding is not None:
426
- real_encoding = encoding
427
- else:
428
- real_encoding = self.get_charset(default="utf-8")
429
- return parse_qsl(
430
- data.rstrip().decode(real_encoding),
431
- keep_blank_values=True,
432
- encoding=real_encoding,
433
- )
434
-
435
- def at_eof(self) -> bool:
436
- """Returns True if the boundary was reached or False otherwise."""
437
- return self._at_eof
438
-
439
- def decode(self, data: bytes) -> bytes:
440
- """Decodes data.
441
-
442
- Decoding is done according the specified Content-Encoding
443
- or Content-Transfer-Encoding headers value.
444
- """
445
- if CONTENT_TRANSFER_ENCODING in self.headers:
446
- data = self._decode_content_transfer(data)
447
- if CONTENT_ENCODING in self.headers:
448
- return self._decode_content(data)
449
- return data
450
-
451
- def _decode_content(self, data: bytes) -> bytes:
452
- encoding = self.headers.get(CONTENT_ENCODING, "").lower()
453
-
454
- if encoding == "deflate":
455
- return zlib.decompress(data, -zlib.MAX_WBITS)
456
- elif encoding == "gzip":
457
- return zlib.decompress(data, 16 + zlib.MAX_WBITS)
458
- elif encoding == "identity":
459
- return data
460
- else:
461
- raise RuntimeError(f"unknown content encoding: {encoding}")
462
-
463
- def _decode_content_transfer(self, data: bytes) -> bytes:
464
- encoding = self.headers.get(CONTENT_TRANSFER_ENCODING, "").lower()
465
-
466
- if encoding == "base64":
467
- return base64.b64decode(data)
468
- elif encoding == "quoted-printable":
469
- return binascii.a2b_qp(data)
470
- elif encoding in ("binary", "8bit", "7bit"):
471
- return data
472
- else:
473
- raise RuntimeError(
474
- "unknown content transfer encoding: {}" "".format(encoding)
475
- )
476
-
477
- def get_charset(self, default: str) -> str:
478
- """Returns charset parameter from Content-Type header or default."""
479
- ctype = self.headers.get(CONTENT_TYPE, "")
480
- mimetype = parse_mimetype(ctype)
481
- return mimetype.parameters.get("charset", default)
482
-
483
- @reify
484
- def name(self) -> Optional[str]:
485
- """Returns name specified in Content-Disposition header.
486
-
487
- If the header is missing or malformed, returns None.
488
- """
489
- _, params = parse_content_disposition(self.headers.get(CONTENT_DISPOSITION))
490
- return content_disposition_filename(params, "name")
491
-
492
- @reify
493
- def filename(self) -> Optional[str]:
494
- """Returns filename specified in Content-Disposition header.
495
-
496
- Returns None if the header is missing or malformed.
497
- """
498
- _, params = parse_content_disposition(self.headers.get(CONTENT_DISPOSITION))
499
- return content_disposition_filename(params, "filename")
500
-
501
-
502
- @payload_type(BodyPartReader, order=Order.try_first)
503
- class BodyPartReaderPayload(Payload):
504
- def __init__(self, value: BodyPartReader, *args: Any, **kwargs: Any) -> None:
505
- super().__init__(value, *args, **kwargs)
506
-
507
- params: Dict[str, str] = {}
508
- if value.name is not None:
509
- params["name"] = value.name
510
- if value.filename is not None:
511
- params["filename"] = value.filename
512
-
513
- if params:
514
- self.set_content_disposition("attachment", True, **params)
515
-
516
- async def write(self, writer: Any) -> None:
517
- field = self._value
518
- chunk = await field.read_chunk(size=2**16)
519
- while chunk:
520
- await writer.write(field.decode(chunk))
521
- chunk = await field.read_chunk(size=2**16)
522
-
523
-
524
- class MultipartReader:
525
- """Multipart body reader."""
526
-
527
- #: Response wrapper, used when multipart readers constructs from response.
528
- response_wrapper_cls = MultipartResponseWrapper
529
- #: Multipart reader class, used to handle multipart/* body parts.
530
- #: None points to type(self)
531
- multipart_reader_cls = None
532
- #: Body part reader class for non multipart/* content types.
533
- part_reader_cls = BodyPartReader
534
-
535
- def __init__(self, headers: Mapping[str, str], content: StreamReader) -> None:
536
- self.headers = headers
537
- self._boundary = ("--" + self._get_boundary()).encode()
538
- self._content = content
539
- self._last_part: Optional[Union["MultipartReader", BodyPartReader]] = None
540
- self._at_eof = False
541
- self._at_bof = True
542
- self._unread: List[bytes] = []
543
-
544
- def __aiter__(
545
- self,
546
- ) -> AsyncIterator["BodyPartReader"]:
547
- return self # type: ignore[return-value]
548
-
549
- async def __anext__(
550
- self,
551
- ) -> Optional[Union["MultipartReader", BodyPartReader]]:
552
- part = await self.next()
553
- if part is None:
554
- raise StopAsyncIteration
555
- return part
556
-
557
- @classmethod
558
- def from_response(
559
- cls,
560
- response: "ClientResponse",
561
- ) -> MultipartResponseWrapper:
562
- """Constructs reader instance from HTTP response.
563
-
564
- :param response: :class:`~aiohttp.client.ClientResponse` instance
565
- """
566
- obj = cls.response_wrapper_cls(
567
- response, cls(response.headers, response.content)
568
- )
569
- return obj
570
-
571
- def at_eof(self) -> bool:
572
- """Returns True if the final boundary was reached, false otherwise."""
573
- return self._at_eof
574
-
575
- async def next(
576
- self,
577
- ) -> Optional[Union["MultipartReader", BodyPartReader]]:
578
- """Emits the next multipart body part."""
579
- # So, if we're at BOF, we need to skip till the boundary.
580
- if self._at_eof:
581
- return None
582
- await self._maybe_release_last_part()
583
- if self._at_bof:
584
- await self._read_until_first_boundary()
585
- self._at_bof = False
586
- else:
587
- await self._read_boundary()
588
- if self._at_eof: # we just read the last boundary, nothing to do there
589
- return None
590
- self._last_part = await self.fetch_next_part()
591
- return self._last_part
592
-
593
- async def release(self) -> None:
594
- """Reads all the body parts to the void till the final boundary."""
595
- while not self._at_eof:
596
- item = await self.next()
597
- if item is None:
598
- break
599
- await item.release()
600
-
601
- async def fetch_next_part(
602
- self,
603
- ) -> Union["MultipartReader", BodyPartReader]:
604
- """Returns the next body part reader."""
605
- headers = await self._read_headers()
606
- return self._get_part_reader(headers)
607
-
608
- def _get_part_reader(
609
- self,
610
- headers: "CIMultiDictProxy[str]",
611
- ) -> Union["MultipartReader", BodyPartReader]:
612
- """Dispatches the response by the `Content-Type` header.
613
-
614
- Returns a suitable reader instance.
615
-
616
- :param dict headers: Response headers
617
- """
618
- ctype = headers.get(CONTENT_TYPE, "")
619
- mimetype = parse_mimetype(ctype)
620
-
621
- if mimetype.type == "multipart":
622
- if self.multipart_reader_cls is None:
623
- return type(self)(headers, self._content)
624
- return self.multipart_reader_cls(headers, self._content)
625
- else:
626
- return self.part_reader_cls(self._boundary, headers, self._content)
627
-
628
- def _get_boundary(self) -> str:
629
- mimetype = parse_mimetype(self.headers[CONTENT_TYPE])
630
-
631
- assert mimetype.type == "multipart", "multipart/* content type expected"
632
-
633
- if "boundary" not in mimetype.parameters:
634
- raise ValueError(
635
- "boundary missed for Content-Type: %s" % self.headers[CONTENT_TYPE]
636
- )
637
-
638
- boundary = mimetype.parameters["boundary"]
639
- if len(boundary) > 70:
640
- raise ValueError("boundary %r is too long (70 chars max)" % boundary)
641
-
642
- return boundary
643
-
644
- async def _readline(self) -> bytes:
645
- if self._unread:
646
- return self._unread.pop()
647
- return await self._content.readline()
648
-
649
- async def _read_until_first_boundary(self) -> None:
650
- while True:
651
- chunk = await self._readline()
652
- if chunk == b"":
653
- raise ValueError(
654
- "Could not find starting boundary %r" % (self._boundary)
655
- )
656
- chunk = chunk.rstrip()
657
- if chunk == self._boundary:
658
- return
659
- elif chunk == self._boundary + b"--":
660
- self._at_eof = True
661
- return
662
-
663
- async def _read_boundary(self) -> None:
664
- chunk = (await self._readline()).rstrip()
665
- if chunk == self._boundary:
666
- pass
667
- elif chunk == self._boundary + b"--":
668
- self._at_eof = True
669
- epilogue = await self._readline()
670
- next_line = await self._readline()
671
-
672
- # the epilogue is expected and then either the end of input or the
673
- # parent multipart boundary, if the parent boundary is found then
674
- # it should be marked as unread and handed to the parent for
675
- # processing
676
- if next_line[:2] == b"--":
677
- self._unread.append(next_line)
678
- # otherwise the request is likely missing an epilogue and both
679
- # lines should be passed to the parent for processing
680
- # (this handles the old behavior gracefully)
681
- else:
682
- self._unread.extend([next_line, epilogue])
683
- else:
684
- raise ValueError(f"Invalid boundary {chunk!r}, expected {self._boundary!r}")
685
-
686
- async def _read_headers(self) -> "CIMultiDictProxy[str]":
687
- lines = [b""]
688
- while True:
689
- chunk = await self._content.readline()
690
- chunk = chunk.strip()
691
- lines.append(chunk)
692
- if not chunk:
693
- break
694
- parser = HeadersParser()
695
- headers, raw_headers = parser.parse_headers(lines)
696
- return headers
697
-
698
- async def _maybe_release_last_part(self) -> None:
699
- """Ensures that the last read body part is read completely."""
700
- if self._last_part is not None:
701
- if not self._last_part.at_eof():
702
- await self._last_part.release()
703
- self._unread.extend(self._last_part._unread)
704
- self._last_part = None
705
-
706
-
707
- _Part = Tuple[Payload, str, str]
708
-
709
-
710
- class MultipartWriter(Payload):
711
- """Multipart body writer."""
712
-
713
- def __init__(self, subtype: str = "mixed", boundary: Optional[str] = None) -> None:
714
- boundary = boundary if boundary is not None else uuid.uuid4().hex
715
- # The underlying Payload API demands a str (utf-8), not bytes,
716
- # so we need to ensure we don't lose anything during conversion.
717
- # As a result, require the boundary to be ASCII only.
718
- # In both situations.
719
-
720
- try:
721
- self._boundary = boundary.encode("ascii")
722
- except UnicodeEncodeError:
723
- raise ValueError("boundary should contain ASCII only chars") from None
724
- ctype = f"multipart/{subtype}; boundary={self._boundary_value}"
725
-
726
- super().__init__(None, content_type=ctype)
727
-
728
- self._parts: List[_Part] = []
729
-
730
- def __enter__(self) -> "MultipartWriter":
731
- return self
732
-
733
- def __exit__(
734
- self,
735
- exc_type: Optional[Type[BaseException]],
736
- exc_val: Optional[BaseException],
737
- exc_tb: Optional[TracebackType],
738
- ) -> None:
739
- pass
740
-
741
- def __iter__(self) -> Iterator[_Part]:
742
- return iter(self._parts)
743
-
744
- def __len__(self) -> int:
745
- return len(self._parts)
746
-
747
- def __bool__(self) -> bool:
748
- return True
749
-
750
- _valid_tchar_regex = re.compile(rb"\A[!#$%&'*+\-.^_`|~\w]+\Z")
751
- _invalid_qdtext_char_regex = re.compile(rb"[\x00-\x08\x0A-\x1F\x7F]")
752
-
753
- @property
754
- def _boundary_value(self) -> str:
755
- """Wrap boundary parameter value in quotes, if necessary.
756
-
757
- Reads self.boundary and returns a unicode sting.
758
- """
759
- # Refer to RFCs 7231, 7230, 5234.
760
- #
761
- # parameter = token "=" ( token / quoted-string )
762
- # token = 1*tchar
763
- # quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
764
- # qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text
765
- # obs-text = %x80-FF
766
- # quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
767
- # tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
768
- # / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
769
- # / DIGIT / ALPHA
770
- # ; any VCHAR, except delimiters
771
- # VCHAR = %x21-7E
772
- value = self._boundary
773
- if re.match(self._valid_tchar_regex, value):
774
- return value.decode("ascii") # cannot fail
775
-
776
- if re.search(self._invalid_qdtext_char_regex, value):
777
- raise ValueError("boundary value contains invalid characters")
778
-
779
- # escape %x5C and %x22
780
- quoted_value_content = value.replace(b"\\", b"\\\\")
781
- quoted_value_content = quoted_value_content.replace(b'"', b'\\"')
782
-
783
- return '"' + quoted_value_content.decode("ascii") + '"'
784
-
785
- @property
786
- def boundary(self) -> str:
787
- return self._boundary.decode("ascii")
788
-
789
- def append(self, obj: Any, headers: Optional[MultiMapping[str]] = None) -> Payload:
790
- if headers is None:
791
- headers = CIMultiDict()
792
-
793
- if isinstance(obj, Payload):
794
- obj.headers.update(headers)
795
- return self.append_payload(obj)
796
- else:
797
- try:
798
- payload = get_payload(obj, headers=headers)
799
- except LookupError:
800
- raise TypeError("Cannot create payload from %r" % obj)
801
- else:
802
- return self.append_payload(payload)
803
-
804
- def append_payload(self, payload: Payload) -> Payload:
805
- """Adds a new body part to multipart writer."""
806
- # compression
807
- encoding: Optional[str] = payload.headers.get(
808
- CONTENT_ENCODING,
809
- "",
810
- ).lower()
811
- if encoding and encoding not in ("deflate", "gzip", "identity"):
812
- raise RuntimeError(f"unknown content encoding: {encoding}")
813
- if encoding == "identity":
814
- encoding = None
815
-
816
- # te encoding
817
- te_encoding: Optional[str] = payload.headers.get(
818
- CONTENT_TRANSFER_ENCODING,
819
- "",
820
- ).lower()
821
- if te_encoding not in ("", "base64", "quoted-printable", "binary"):
822
- raise RuntimeError(
823
- "unknown content transfer encoding: {}" "".format(te_encoding)
824
- )
825
- if te_encoding == "binary":
826
- te_encoding = None
827
-
828
- # size
829
- size = payload.size
830
- if size is not None and not (encoding or te_encoding):
831
- payload.headers[CONTENT_LENGTH] = str(size)
832
-
833
- self._parts.append((payload, encoding, te_encoding)) # type: ignore[arg-type]
834
- return payload
835
-
836
- def append_json(
837
- self, obj: Any, headers: Optional[MultiMapping[str]] = None
838
- ) -> Payload:
839
- """Helper to append JSON part."""
840
- if headers is None:
841
- headers = CIMultiDict()
842
-
843
- return self.append_payload(JsonPayload(obj, headers=headers))
844
-
845
- def append_form(
846
- self,
847
- obj: Union[Sequence[Tuple[str, str]], Mapping[str, str]],
848
- headers: Optional[MultiMapping[str]] = None,
849
- ) -> Payload:
850
- """Helper to append form urlencoded part."""
851
- assert isinstance(obj, (Sequence, Mapping))
852
-
853
- if headers is None:
854
- headers = CIMultiDict()
855
-
856
- if isinstance(obj, Mapping):
857
- obj = list(obj.items())
858
- data = urlencode(obj, doseq=True)
859
-
860
- return self.append_payload(
861
- StringPayload(
862
- data, headers=headers, content_type="application/x-www-form-urlencoded"
863
- )
864
- )
865
-
866
- @property
867
- def size(self) -> Optional[int]:
868
- """Size of the payload."""
869
- total = 0
870
- for part, encoding, te_encoding in self._parts:
871
- if encoding or te_encoding or part.size is None:
872
- return None
873
-
874
- total += int(
875
- 2
876
- + len(self._boundary)
877
- + 2
878
- + part.size # b'--'+self._boundary+b'\r\n'
879
- + len(part._binary_headers)
880
- + 2 # b'\r\n'
881
- )
882
-
883
- total += 2 + len(self._boundary) + 4 # b'--'+self._boundary+b'--\r\n'
884
- return total
885
-
886
- async def write(self, writer: Any, close_boundary: bool = True) -> None:
887
- """Write body."""
888
- for part, encoding, te_encoding in self._parts:
889
- await writer.write(b"--" + self._boundary + b"\r\n")
890
- await writer.write(part._binary_headers)
891
-
892
- if encoding or te_encoding:
893
- w = MultipartPayloadWriter(writer)
894
- if encoding:
895
- w.enable_compression(encoding)
896
- if te_encoding:
897
- w.enable_encoding(te_encoding)
898
- await part.write(w) # type: ignore[arg-type]
899
- await w.write_eof()
900
- else:
901
- await part.write(writer)
902
-
903
- await writer.write(b"\r\n")
904
-
905
- if close_boundary:
906
- await writer.write(b"--" + self._boundary + b"--\r\n")
907
-
908
-
909
- class MultipartPayloadWriter:
910
- def __init__(self, writer: Any) -> None:
911
- self._writer = writer
912
- self._encoding: Optional[str] = None
913
- self._compress: Any = None
914
- self._encoding_buffer: Optional[bytearray] = None
915
-
916
- def enable_encoding(self, encoding: str) -> None:
917
- if encoding == "base64":
918
- self._encoding = encoding
919
- self._encoding_buffer = bytearray()
920
- elif encoding == "quoted-printable":
921
- self._encoding = "quoted-printable"
922
-
923
- def enable_compression(
924
- self, encoding: str = "deflate", strategy: int = zlib.Z_DEFAULT_STRATEGY
925
- ) -> None:
926
- zlib_mode = 16 + zlib.MAX_WBITS if encoding == "gzip" else -zlib.MAX_WBITS
927
- self._compress = zlib.compressobj(wbits=zlib_mode, strategy=strategy)
928
-
929
- async def write_eof(self) -> None:
930
- if self._compress is not None:
931
- chunk = self._compress.flush()
932
- if chunk:
933
- self._compress = None
934
- await self.write(chunk)
935
-
936
- if self._encoding == "base64":
937
- if self._encoding_buffer:
938
- await self._writer.write(base64.b64encode(self._encoding_buffer))
939
-
940
- async def write(self, chunk: bytes) -> None:
941
- if self._compress is not None:
942
- if chunk:
943
- chunk = self._compress.compress(chunk)
944
- if not chunk:
945
- return
946
-
947
- if self._encoding == "base64":
948
- buf = self._encoding_buffer
949
- assert buf is not None
950
- buf.extend(chunk)
951
-
952
- if buf:
953
- div, mod = divmod(len(buf), 3)
954
- enc_chunk, self._encoding_buffer = (buf[: div * 3], buf[div * 3 :])
955
- if enc_chunk:
956
- b64chunk = base64.b64encode(enc_chunk)
957
- await self._writer.write(b64chunk)
958
- elif self._encoding == "quoted-printable":
959
- await self._writer.write(binascii.b2a_qp(chunk))
960
- else:
961
- await self._writer.write(chunk)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/click/testing.py DELETED
@@ -1,479 +0,0 @@
1
- import contextlib
2
- import io
3
- import os
4
- import shlex
5
- import shutil
6
- import sys
7
- import tempfile
8
- import typing as t
9
- from types import TracebackType
10
-
11
- from . import formatting
12
- from . import termui
13
- from . import utils
14
- from ._compat import _find_binary_reader
15
-
16
- if t.TYPE_CHECKING:
17
- from .core import BaseCommand
18
-
19
-
20
- class EchoingStdin:
21
- def __init__(self, input: t.BinaryIO, output: t.BinaryIO) -> None:
22
- self._input = input
23
- self._output = output
24
- self._paused = False
25
-
26
- def __getattr__(self, x: str) -> t.Any:
27
- return getattr(self._input, x)
28
-
29
- def _echo(self, rv: bytes) -> bytes:
30
- if not self._paused:
31
- self._output.write(rv)
32
-
33
- return rv
34
-
35
- def read(self, n: int = -1) -> bytes:
36
- return self._echo(self._input.read(n))
37
-
38
- def read1(self, n: int = -1) -> bytes:
39
- return self._echo(self._input.read1(n)) # type: ignore
40
-
41
- def readline(self, n: int = -1) -> bytes:
42
- return self._echo(self._input.readline(n))
43
-
44
- def readlines(self) -> t.List[bytes]:
45
- return [self._echo(x) for x in self._input.readlines()]
46
-
47
- def __iter__(self) -> t.Iterator[bytes]:
48
- return iter(self._echo(x) for x in self._input)
49
-
50
- def __repr__(self) -> str:
51
- return repr(self._input)
52
-
53
-
54
- @contextlib.contextmanager
55
- def _pause_echo(stream: t.Optional[EchoingStdin]) -> t.Iterator[None]:
56
- if stream is None:
57
- yield
58
- else:
59
- stream._paused = True
60
- yield
61
- stream._paused = False
62
-
63
-
64
- class _NamedTextIOWrapper(io.TextIOWrapper):
65
- def __init__(
66
- self, buffer: t.BinaryIO, name: str, mode: str, **kwargs: t.Any
67
- ) -> None:
68
- super().__init__(buffer, **kwargs)
69
- self._name = name
70
- self._mode = mode
71
-
72
- @property
73
- def name(self) -> str:
74
- return self._name
75
-
76
- @property
77
- def mode(self) -> str:
78
- return self._mode
79
-
80
-
81
- def make_input_stream(
82
- input: t.Optional[t.Union[str, bytes, t.IO[t.Any]]], charset: str
83
- ) -> t.BinaryIO:
84
- # Is already an input stream.
85
- if hasattr(input, "read"):
86
- rv = _find_binary_reader(t.cast(t.IO[t.Any], input))
87
-
88
- if rv is not None:
89
- return rv
90
-
91
- raise TypeError("Could not find binary reader for input stream.")
92
-
93
- if input is None:
94
- input = b""
95
- elif isinstance(input, str):
96
- input = input.encode(charset)
97
-
98
- return io.BytesIO(input)
99
-
100
-
101
- class Result:
102
- """Holds the captured result of an invoked CLI script."""
103
-
104
- def __init__(
105
- self,
106
- runner: "CliRunner",
107
- stdout_bytes: bytes,
108
- stderr_bytes: t.Optional[bytes],
109
- return_value: t.Any,
110
- exit_code: int,
111
- exception: t.Optional[BaseException],
112
- exc_info: t.Optional[
113
- t.Tuple[t.Type[BaseException], BaseException, TracebackType]
114
- ] = None,
115
- ):
116
- #: The runner that created the result
117
- self.runner = runner
118
- #: The standard output as bytes.
119
- self.stdout_bytes = stdout_bytes
120
- #: The standard error as bytes, or None if not available
121
- self.stderr_bytes = stderr_bytes
122
- #: The value returned from the invoked command.
123
- #:
124
- #: .. versionadded:: 8.0
125
- self.return_value = return_value
126
- #: The exit code as integer.
127
- self.exit_code = exit_code
128
- #: The exception that happened if one did.
129
- self.exception = exception
130
- #: The traceback
131
- self.exc_info = exc_info
132
-
133
- @property
134
- def output(self) -> str:
135
- """The (standard) output as unicode string."""
136
- return self.stdout
137
-
138
- @property
139
- def stdout(self) -> str:
140
- """The standard output as unicode string."""
141
- return self.stdout_bytes.decode(self.runner.charset, "replace").replace(
142
- "\r\n", "\n"
143
- )
144
-
145
- @property
146
- def stderr(self) -> str:
147
- """The standard error as unicode string."""
148
- if self.stderr_bytes is None:
149
- raise ValueError("stderr not separately captured")
150
- return self.stderr_bytes.decode(self.runner.charset, "replace").replace(
151
- "\r\n", "\n"
152
- )
153
-
154
- def __repr__(self) -> str:
155
- exc_str = repr(self.exception) if self.exception else "okay"
156
- return f"<{type(self).__name__} {exc_str}>"
157
-
158
-
159
- class CliRunner:
160
- """The CLI runner provides functionality to invoke a Click command line
161
- script for unittesting purposes in a isolated environment. This only
162
- works in single-threaded systems without any concurrency as it changes the
163
- global interpreter state.
164
-
165
- :param charset: the character set for the input and output data.
166
- :param env: a dictionary with environment variables for overriding.
167
- :param echo_stdin: if this is set to `True`, then reading from stdin writes
168
- to stdout. This is useful for showing examples in
169
- some circumstances. Note that regular prompts
170
- will automatically echo the input.
171
- :param mix_stderr: if this is set to `False`, then stdout and stderr are
172
- preserved as independent streams. This is useful for
173
- Unix-philosophy apps that have predictable stdout and
174
- noisy stderr, such that each may be measured
175
- independently
176
- """
177
-
178
- def __init__(
179
- self,
180
- charset: str = "utf-8",
181
- env: t.Optional[t.Mapping[str, t.Optional[str]]] = None,
182
- echo_stdin: bool = False,
183
- mix_stderr: bool = True,
184
- ) -> None:
185
- self.charset = charset
186
- self.env: t.Mapping[str, t.Optional[str]] = env or {}
187
- self.echo_stdin = echo_stdin
188
- self.mix_stderr = mix_stderr
189
-
190
- def get_default_prog_name(self, cli: "BaseCommand") -> str:
191
- """Given a command object it will return the default program name
192
- for it. The default is the `name` attribute or ``"root"`` if not
193
- set.
194
- """
195
- return cli.name or "root"
196
-
197
- def make_env(
198
- self, overrides: t.Optional[t.Mapping[str, t.Optional[str]]] = None
199
- ) -> t.Mapping[str, t.Optional[str]]:
200
- """Returns the environment overrides for invoking a script."""
201
- rv = dict(self.env)
202
- if overrides:
203
- rv.update(overrides)
204
- return rv
205
-
206
- @contextlib.contextmanager
207
- def isolation(
208
- self,
209
- input: t.Optional[t.Union[str, bytes, t.IO[t.Any]]] = None,
210
- env: t.Optional[t.Mapping[str, t.Optional[str]]] = None,
211
- color: bool = False,
212
- ) -> t.Iterator[t.Tuple[io.BytesIO, t.Optional[io.BytesIO]]]:
213
- """A context manager that sets up the isolation for invoking of a
214
- command line tool. This sets up stdin with the given input data
215
- and `os.environ` with the overrides from the given dictionary.
216
- This also rebinds some internals in Click to be mocked (like the
217
- prompt functionality).
218
-
219
- This is automatically done in the :meth:`invoke` method.
220
-
221
- :param input: the input stream to put into sys.stdin.
222
- :param env: the environment overrides as dictionary.
223
- :param color: whether the output should contain color codes. The
224
- application can still override this explicitly.
225
-
226
- .. versionchanged:: 8.0
227
- ``stderr`` is opened with ``errors="backslashreplace"``
228
- instead of the default ``"strict"``.
229
-
230
- .. versionchanged:: 4.0
231
- Added the ``color`` parameter.
232
- """
233
- bytes_input = make_input_stream(input, self.charset)
234
- echo_input = None
235
-
236
- old_stdin = sys.stdin
237
- old_stdout = sys.stdout
238
- old_stderr = sys.stderr
239
- old_forced_width = formatting.FORCED_WIDTH
240
- formatting.FORCED_WIDTH = 80
241
-
242
- env = self.make_env(env)
243
-
244
- bytes_output = io.BytesIO()
245
-
246
- if self.echo_stdin:
247
- bytes_input = echo_input = t.cast(
248
- t.BinaryIO, EchoingStdin(bytes_input, bytes_output)
249
- )
250
-
251
- sys.stdin = text_input = _NamedTextIOWrapper(
252
- bytes_input, encoding=self.charset, name="<stdin>", mode="r"
253
- )
254
-
255
- if self.echo_stdin:
256
- # Force unbuffered reads, otherwise TextIOWrapper reads a
257
- # large chunk which is echoed early.
258
- text_input._CHUNK_SIZE = 1 # type: ignore
259
-
260
- sys.stdout = _NamedTextIOWrapper(
261
- bytes_output, encoding=self.charset, name="<stdout>", mode="w"
262
- )
263
-
264
- bytes_error = None
265
- if self.mix_stderr:
266
- sys.stderr = sys.stdout
267
- else:
268
- bytes_error = io.BytesIO()
269
- sys.stderr = _NamedTextIOWrapper(
270
- bytes_error,
271
- encoding=self.charset,
272
- name="<stderr>",
273
- mode="w",
274
- errors="backslashreplace",
275
- )
276
-
277
- @_pause_echo(echo_input) # type: ignore
278
- def visible_input(prompt: t.Optional[str] = None) -> str:
279
- sys.stdout.write(prompt or "")
280
- val = text_input.readline().rstrip("\r\n")
281
- sys.stdout.write(f"{val}\n")
282
- sys.stdout.flush()
283
- return val
284
-
285
- @_pause_echo(echo_input) # type: ignore
286
- def hidden_input(prompt: t.Optional[str] = None) -> str:
287
- sys.stdout.write(f"{prompt or ''}\n")
288
- sys.stdout.flush()
289
- return text_input.readline().rstrip("\r\n")
290
-
291
- @_pause_echo(echo_input) # type: ignore
292
- def _getchar(echo: bool) -> str:
293
- char = sys.stdin.read(1)
294
-
295
- if echo:
296
- sys.stdout.write(char)
297
-
298
- sys.stdout.flush()
299
- return char
300
-
301
- default_color = color
302
-
303
- def should_strip_ansi(
304
- stream: t.Optional[t.IO[t.Any]] = None, color: t.Optional[bool] = None
305
- ) -> bool:
306
- if color is None:
307
- return not default_color
308
- return not color
309
-
310
- old_visible_prompt_func = termui.visible_prompt_func
311
- old_hidden_prompt_func = termui.hidden_prompt_func
312
- old__getchar_func = termui._getchar
313
- old_should_strip_ansi = utils.should_strip_ansi # type: ignore
314
- termui.visible_prompt_func = visible_input
315
- termui.hidden_prompt_func = hidden_input
316
- termui._getchar = _getchar
317
- utils.should_strip_ansi = should_strip_ansi # type: ignore
318
-
319
- old_env = {}
320
- try:
321
- for key, value in env.items():
322
- old_env[key] = os.environ.get(key)
323
- if value is None:
324
- try:
325
- del os.environ[key]
326
- except Exception:
327
- pass
328
- else:
329
- os.environ[key] = value
330
- yield (bytes_output, bytes_error)
331
- finally:
332
- for key, value in old_env.items():
333
- if value is None:
334
- try:
335
- del os.environ[key]
336
- except Exception:
337
- pass
338
- else:
339
- os.environ[key] = value
340
- sys.stdout = old_stdout
341
- sys.stderr = old_stderr
342
- sys.stdin = old_stdin
343
- termui.visible_prompt_func = old_visible_prompt_func
344
- termui.hidden_prompt_func = old_hidden_prompt_func
345
- termui._getchar = old__getchar_func
346
- utils.should_strip_ansi = old_should_strip_ansi # type: ignore
347
- formatting.FORCED_WIDTH = old_forced_width
348
-
349
- def invoke(
350
- self,
351
- cli: "BaseCommand",
352
- args: t.Optional[t.Union[str, t.Sequence[str]]] = None,
353
- input: t.Optional[t.Union[str, bytes, t.IO[t.Any]]] = None,
354
- env: t.Optional[t.Mapping[str, t.Optional[str]]] = None,
355
- catch_exceptions: bool = True,
356
- color: bool = False,
357
- **extra: t.Any,
358
- ) -> Result:
359
- """Invokes a command in an isolated environment. The arguments are
360
- forwarded directly to the command line script, the `extra` keyword
361
- arguments are passed to the :meth:`~clickpkg.Command.main` function of
362
- the command.
363
-
364
- This returns a :class:`Result` object.
365
-
366
- :param cli: the command to invoke
367
- :param args: the arguments to invoke. It may be given as an iterable
368
- or a string. When given as string it will be interpreted
369
- as a Unix shell command. More details at
370
- :func:`shlex.split`.
371
- :param input: the input data for `sys.stdin`.
372
- :param env: the environment overrides.
373
- :param catch_exceptions: Whether to catch any other exceptions than
374
- ``SystemExit``.
375
- :param extra: the keyword arguments to pass to :meth:`main`.
376
- :param color: whether the output should contain color codes. The
377
- application can still override this explicitly.
378
-
379
- .. versionchanged:: 8.0
380
- The result object has the ``return_value`` attribute with
381
- the value returned from the invoked command.
382
-
383
- .. versionchanged:: 4.0
384
- Added the ``color`` parameter.
385
-
386
- .. versionchanged:: 3.0
387
- Added the ``catch_exceptions`` parameter.
388
-
389
- .. versionchanged:: 3.0
390
- The result object has the ``exc_info`` attribute with the
391
- traceback if available.
392
- """
393
- exc_info = None
394
- with self.isolation(input=input, env=env, color=color) as outstreams:
395
- return_value = None
396
- exception: t.Optional[BaseException] = None
397
- exit_code = 0
398
-
399
- if isinstance(args, str):
400
- args = shlex.split(args)
401
-
402
- try:
403
- prog_name = extra.pop("prog_name")
404
- except KeyError:
405
- prog_name = self.get_default_prog_name(cli)
406
-
407
- try:
408
- return_value = cli.main(args=args or (), prog_name=prog_name, **extra)
409
- except SystemExit as e:
410
- exc_info = sys.exc_info()
411
- e_code = t.cast(t.Optional[t.Union[int, t.Any]], e.code)
412
-
413
- if e_code is None:
414
- e_code = 0
415
-
416
- if e_code != 0:
417
- exception = e
418
-
419
- if not isinstance(e_code, int):
420
- sys.stdout.write(str(e_code))
421
- sys.stdout.write("\n")
422
- e_code = 1
423
-
424
- exit_code = e_code
425
-
426
- except Exception as e:
427
- if not catch_exceptions:
428
- raise
429
- exception = e
430
- exit_code = 1
431
- exc_info = sys.exc_info()
432
- finally:
433
- sys.stdout.flush()
434
- stdout = outstreams[0].getvalue()
435
- if self.mix_stderr:
436
- stderr = None
437
- else:
438
- stderr = outstreams[1].getvalue() # type: ignore
439
-
440
- return Result(
441
- runner=self,
442
- stdout_bytes=stdout,
443
- stderr_bytes=stderr,
444
- return_value=return_value,
445
- exit_code=exit_code,
446
- exception=exception,
447
- exc_info=exc_info, # type: ignore
448
- )
449
-
450
- @contextlib.contextmanager
451
- def isolated_filesystem(
452
- self, temp_dir: t.Optional[t.Union[str, "os.PathLike[str]"]] = None
453
- ) -> t.Iterator[str]:
454
- """A context manager that creates a temporary directory and
455
- changes the current working directory to it. This isolates tests
456
- that affect the contents of the CWD to prevent them from
457
- interfering with each other.
458
-
459
- :param temp_dir: Create the temporary directory under this
460
- directory. If given, the created directory is not removed
461
- when exiting.
462
-
463
- .. versionchanged:: 8.0
464
- Added the ``temp_dir`` parameter.
465
- """
466
- cwd = os.getcwd()
467
- dt = tempfile.mkdtemp(dir=temp_dir)
468
- os.chdir(dt)
469
-
470
- try:
471
- yield dt
472
- finally:
473
- os.chdir(cwd)
474
-
475
- if temp_dir is None:
476
- try:
477
- shutil.rmtree(dt)
478
- except OSError: # noqa: B014
479
- pass
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/httpcore/_sync/http_proxy.py DELETED
@@ -1,350 +0,0 @@
1
- import logging
2
- import ssl
3
- from base64 import b64encode
4
- from typing import Iterable, List, Mapping, Optional, Sequence, Tuple, Union
5
-
6
- from .._backends.base import SOCKET_OPTION, NetworkBackend
7
- from .._exceptions import ProxyError
8
- from .._models import (
9
- URL,
10
- Origin,
11
- Request,
12
- Response,
13
- enforce_bytes,
14
- enforce_headers,
15
- enforce_url,
16
- )
17
- from .._ssl import default_ssl_context
18
- from .._synchronization import Lock
19
- from .._trace import Trace
20
- from .connection import HTTPConnection
21
- from .connection_pool import ConnectionPool
22
- from .http11 import HTTP11Connection
23
- from .interfaces import ConnectionInterface
24
-
25
- HeadersAsSequence = Sequence[Tuple[Union[bytes, str], Union[bytes, str]]]
26
- HeadersAsMapping = Mapping[Union[bytes, str], Union[bytes, str]]
27
-
28
-
29
- logger = logging.getLogger("httpcore.proxy")
30
-
31
-
32
- def merge_headers(
33
- default_headers: Optional[Sequence[Tuple[bytes, bytes]]] = None,
34
- override_headers: Optional[Sequence[Tuple[bytes, bytes]]] = None,
35
- ) -> List[Tuple[bytes, bytes]]:
36
- """
37
- Append default_headers and override_headers, de-duplicating if a key exists
38
- in both cases.
39
- """
40
- default_headers = [] if default_headers is None else list(default_headers)
41
- override_headers = [] if override_headers is None else list(override_headers)
42
- has_override = set(key.lower() for key, value in override_headers)
43
- default_headers = [
44
- (key, value)
45
- for key, value in default_headers
46
- if key.lower() not in has_override
47
- ]
48
- return default_headers + override_headers
49
-
50
-
51
- def build_auth_header(username: bytes, password: bytes) -> bytes:
52
- userpass = username + b":" + password
53
- return b"Basic " + b64encode(userpass)
54
-
55
-
56
- class HTTPProxy(ConnectionPool):
57
- """
58
- A connection pool that sends requests via an HTTP proxy.
59
- """
60
-
61
- def __init__(
62
- self,
63
- proxy_url: Union[URL, bytes, str],
64
- proxy_auth: Optional[Tuple[Union[bytes, str], Union[bytes, str]]] = None,
65
- proxy_headers: Union[HeadersAsMapping, HeadersAsSequence, None] = None,
66
- ssl_context: Optional[ssl.SSLContext] = None,
67
- max_connections: Optional[int] = 10,
68
- max_keepalive_connections: Optional[int] = None,
69
- keepalive_expiry: Optional[float] = None,
70
- http1: bool = True,
71
- http2: bool = False,
72
- retries: int = 0,
73
- local_address: Optional[str] = None,
74
- uds: Optional[str] = None,
75
- network_backend: Optional[NetworkBackend] = None,
76
- socket_options: Optional[Iterable[SOCKET_OPTION]] = None,
77
- ) -> None:
78
- """
79
- A connection pool for making HTTP requests.
80
-
81
- Parameters:
82
- proxy_url: The URL to use when connecting to the proxy server.
83
- For example `"http://127.0.0.1:8080/"`.
84
- proxy_auth: Any proxy authentication as a two-tuple of
85
- (username, password). May be either bytes or ascii-only str.
86
- proxy_headers: Any HTTP headers to use for the proxy requests.
87
- For example `{"Proxy-Authorization": "Basic <username>:<password>"}`.
88
- ssl_context: An SSL context to use for verifying connections.
89
- If not specified, the default `httpcore.default_ssl_context()`
90
- will be used.
91
- max_connections: The maximum number of concurrent HTTP connections that
92
- the pool should allow. Any attempt to send a request on a pool that
93
- would exceed this amount will block until a connection is available.
94
- max_keepalive_connections: The maximum number of idle HTTP connections
95
- that will be maintained in the pool.
96
- keepalive_expiry: The duration in seconds that an idle HTTP connection
97
- may be maintained for before being expired from the pool.
98
- http1: A boolean indicating if HTTP/1.1 requests should be supported
99
- by the connection pool. Defaults to True.
100
- http2: A boolean indicating if HTTP/2 requests should be supported by
101
- the connection pool. Defaults to False.
102
- retries: The maximum number of retries when trying to establish
103
- a connection.
104
- local_address: Local address to connect from. Can also be used to
105
- connect using a particular address family. Using
106
- `local_address="0.0.0.0"` will connect using an `AF_INET` address
107
- (IPv4), while using `local_address="::"` will connect using an
108
- `AF_INET6` address (IPv6).
109
- uds: Path to a Unix Domain Socket to use instead of TCP sockets.
110
- network_backend: A backend instance to use for handling network I/O.
111
- """
112
- super().__init__(
113
- ssl_context=ssl_context,
114
- max_connections=max_connections,
115
- max_keepalive_connections=max_keepalive_connections,
116
- keepalive_expiry=keepalive_expiry,
117
- http1=http1,
118
- http2=http2,
119
- network_backend=network_backend,
120
- retries=retries,
121
- local_address=local_address,
122
- uds=uds,
123
- socket_options=socket_options,
124
- )
125
- self._ssl_context = ssl_context
126
- self._proxy_url = enforce_url(proxy_url, name="proxy_url")
127
- self._proxy_headers = enforce_headers(proxy_headers, name="proxy_headers")
128
- if proxy_auth is not None:
129
- username = enforce_bytes(proxy_auth[0], name="proxy_auth")
130
- password = enforce_bytes(proxy_auth[1], name="proxy_auth")
131
- authorization = build_auth_header(username, password)
132
- self._proxy_headers = [
133
- (b"Proxy-Authorization", authorization)
134
- ] + self._proxy_headers
135
-
136
- def create_connection(self, origin: Origin) -> ConnectionInterface:
137
- if origin.scheme == b"http":
138
- return ForwardHTTPConnection(
139
- proxy_origin=self._proxy_url.origin,
140
- proxy_headers=self._proxy_headers,
141
- remote_origin=origin,
142
- keepalive_expiry=self._keepalive_expiry,
143
- network_backend=self._network_backend,
144
- )
145
- return TunnelHTTPConnection(
146
- proxy_origin=self._proxy_url.origin,
147
- proxy_headers=self._proxy_headers,
148
- remote_origin=origin,
149
- ssl_context=self._ssl_context,
150
- keepalive_expiry=self._keepalive_expiry,
151
- http1=self._http1,
152
- http2=self._http2,
153
- network_backend=self._network_backend,
154
- )
155
-
156
-
157
- class ForwardHTTPConnection(ConnectionInterface):
158
- def __init__(
159
- self,
160
- proxy_origin: Origin,
161
- remote_origin: Origin,
162
- proxy_headers: Union[HeadersAsMapping, HeadersAsSequence, None] = None,
163
- keepalive_expiry: Optional[float] = None,
164
- network_backend: Optional[NetworkBackend] = None,
165
- socket_options: Optional[Iterable[SOCKET_OPTION]] = None,
166
- ) -> None:
167
- self._connection = HTTPConnection(
168
- origin=proxy_origin,
169
- keepalive_expiry=keepalive_expiry,
170
- network_backend=network_backend,
171
- socket_options=socket_options,
172
- )
173
- self._proxy_origin = proxy_origin
174
- self._proxy_headers = enforce_headers(proxy_headers, name="proxy_headers")
175
- self._remote_origin = remote_origin
176
-
177
- def handle_request(self, request: Request) -> Response:
178
- headers = merge_headers(self._proxy_headers, request.headers)
179
- url = URL(
180
- scheme=self._proxy_origin.scheme,
181
- host=self._proxy_origin.host,
182
- port=self._proxy_origin.port,
183
- target=bytes(request.url),
184
- )
185
- proxy_request = Request(
186
- method=request.method,
187
- url=url,
188
- headers=headers,
189
- content=request.stream,
190
- extensions=request.extensions,
191
- )
192
- return self._connection.handle_request(proxy_request)
193
-
194
- def can_handle_request(self, origin: Origin) -> bool:
195
- return origin == self._remote_origin
196
-
197
- def close(self) -> None:
198
- self._connection.close()
199
-
200
- def info(self) -> str:
201
- return self._connection.info()
202
-
203
- def is_available(self) -> bool:
204
- return self._connection.is_available()
205
-
206
- def has_expired(self) -> bool:
207
- return self._connection.has_expired()
208
-
209
- def is_idle(self) -> bool:
210
- return self._connection.is_idle()
211
-
212
- def is_closed(self) -> bool:
213
- return self._connection.is_closed()
214
-
215
- def __repr__(self) -> str:
216
- return f"<{self.__class__.__name__} [{self.info()}]>"
217
-
218
-
219
- class TunnelHTTPConnection(ConnectionInterface):
220
- def __init__(
221
- self,
222
- proxy_origin: Origin,
223
- remote_origin: Origin,
224
- ssl_context: Optional[ssl.SSLContext] = None,
225
- proxy_headers: Optional[Sequence[Tuple[bytes, bytes]]] = None,
226
- keepalive_expiry: Optional[float] = None,
227
- http1: bool = True,
228
- http2: bool = False,
229
- network_backend: Optional[NetworkBackend] = None,
230
- socket_options: Optional[Iterable[SOCKET_OPTION]] = None,
231
- ) -> None:
232
- self._connection: ConnectionInterface = HTTPConnection(
233
- origin=proxy_origin,
234
- keepalive_expiry=keepalive_expiry,
235
- network_backend=network_backend,
236
- socket_options=socket_options,
237
- )
238
- self._proxy_origin = proxy_origin
239
- self._remote_origin = remote_origin
240
- self._ssl_context = ssl_context
241
- self._proxy_headers = enforce_headers(proxy_headers, name="proxy_headers")
242
- self._keepalive_expiry = keepalive_expiry
243
- self._http1 = http1
244
- self._http2 = http2
245
- self._connect_lock = Lock()
246
- self._connected = False
247
-
248
- def handle_request(self, request: Request) -> Response:
249
- timeouts = request.extensions.get("timeout", {})
250
- timeout = timeouts.get("connect", None)
251
-
252
- with self._connect_lock:
253
- if not self._connected:
254
- target = b"%b:%d" % (self._remote_origin.host, self._remote_origin.port)
255
-
256
- connect_url = URL(
257
- scheme=self._proxy_origin.scheme,
258
- host=self._proxy_origin.host,
259
- port=self._proxy_origin.port,
260
- target=target,
261
- )
262
- connect_headers = merge_headers(
263
- [(b"Host", target), (b"Accept", b"*/*")], self._proxy_headers
264
- )
265
- connect_request = Request(
266
- method=b"CONNECT",
267
- url=connect_url,
268
- headers=connect_headers,
269
- extensions=request.extensions,
270
- )
271
- connect_response = self._connection.handle_request(
272
- connect_request
273
- )
274
-
275
- if connect_response.status < 200 or connect_response.status > 299:
276
- reason_bytes = connect_response.extensions.get("reason_phrase", b"")
277
- reason_str = reason_bytes.decode("ascii", errors="ignore")
278
- msg = "%d %s" % (connect_response.status, reason_str)
279
- self._connection.close()
280
- raise ProxyError(msg)
281
-
282
- stream = connect_response.extensions["network_stream"]
283
-
284
- # Upgrade the stream to SSL
285
- ssl_context = (
286
- default_ssl_context()
287
- if self._ssl_context is None
288
- else self._ssl_context
289
- )
290
- alpn_protocols = ["http/1.1", "h2"] if self._http2 else ["http/1.1"]
291
- ssl_context.set_alpn_protocols(alpn_protocols)
292
-
293
- kwargs = {
294
- "ssl_context": ssl_context,
295
- "server_hostname": self._remote_origin.host.decode("ascii"),
296
- "timeout": timeout,
297
- }
298
- with Trace("start_tls", logger, request, kwargs) as trace:
299
- stream = stream.start_tls(**kwargs)
300
- trace.return_value = stream
301
-
302
- # Determine if we should be using HTTP/1.1 or HTTP/2
303
- ssl_object = stream.get_extra_info("ssl_object")
304
- http2_negotiated = (
305
- ssl_object is not None
306
- and ssl_object.selected_alpn_protocol() == "h2"
307
- )
308
-
309
- # Create the HTTP/1.1 or HTTP/2 connection
310
- if http2_negotiated or (self._http2 and not self._http1):
311
- from .http2 import HTTP2Connection
312
-
313
- self._connection = HTTP2Connection(
314
- origin=self._remote_origin,
315
- stream=stream,
316
- keepalive_expiry=self._keepalive_expiry,
317
- )
318
- else:
319
- self._connection = HTTP11Connection(
320
- origin=self._remote_origin,
321
- stream=stream,
322
- keepalive_expiry=self._keepalive_expiry,
323
- )
324
-
325
- self._connected = True
326
- return self._connection.handle_request(request)
327
-
328
- def can_handle_request(self, origin: Origin) -> bool:
329
- return origin == self._remote_origin
330
-
331
- def close(self) -> None:
332
- self._connection.close()
333
-
334
- def info(self) -> str:
335
- return self._connection.info()
336
-
337
- def is_available(self) -> bool:
338
- return self._connection.is_available()
339
-
340
- def has_expired(self) -> bool:
341
- return self._connection.has_expired()
342
-
343
- def is_idle(self) -> bool:
344
- return self._connection.is_idle()
345
-
346
- def is_closed(self) -> bool:
347
- return self._connection.is_closed()
348
-
349
- def __repr__(self) -> str:
350
- return f"<{self.__class__.__name__} [{self.info()}]>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DaleChen/AutoGPT/tests/test_token_counter.py DELETED
@@ -1,63 +0,0 @@
1
- import unittest
2
-
3
- import tests.context
4
- from autogpt.token_counter import count_message_tokens, count_string_tokens
5
-
6
-
7
- class TestTokenCounter(unittest.TestCase):
8
- def test_count_message_tokens(self):
9
- messages = [
10
- {"role": "user", "content": "Hello"},
11
- {"role": "assistant", "content": "Hi there!"},
12
- ]
13
- self.assertEqual(count_message_tokens(messages), 17)
14
-
15
- def test_count_message_tokens_with_name(self):
16
- messages = [
17
- {"role": "user", "content": "Hello", "name": "John"},
18
- {"role": "assistant", "content": "Hi there!"},
19
- ]
20
- self.assertEqual(count_message_tokens(messages), 17)
21
-
22
- def test_count_message_tokens_empty_input(self):
23
- self.assertEqual(count_message_tokens([]), 3)
24
-
25
- def test_count_message_tokens_invalid_model(self):
26
- messages = [
27
- {"role": "user", "content": "Hello"},
28
- {"role": "assistant", "content": "Hi there!"},
29
- ]
30
- with self.assertRaises(KeyError):
31
- count_message_tokens(messages, model="invalid_model")
32
-
33
- def test_count_message_tokens_gpt_4(self):
34
- messages = [
35
- {"role": "user", "content": "Hello"},
36
- {"role": "assistant", "content": "Hi there!"},
37
- ]
38
- self.assertEqual(count_message_tokens(messages, model="gpt-4-0314"), 15)
39
-
40
- def test_count_string_tokens(self):
41
- string = "Hello, world!"
42
- self.assertEqual(
43
- count_string_tokens(string, model_name="gpt-3.5-turbo-0301"), 4
44
- )
45
-
46
- def test_count_string_tokens_empty_input(self):
47
- self.assertEqual(count_string_tokens("", model_name="gpt-3.5-turbo-0301"), 0)
48
-
49
- def test_count_message_tokens_invalid_model(self):
50
- messages = [
51
- {"role": "user", "content": "Hello"},
52
- {"role": "assistant", "content": "Hi there!"},
53
- ]
54
- with self.assertRaises(NotImplementedError):
55
- count_message_tokens(messages, model="invalid_model")
56
-
57
- def test_count_string_tokens_gpt_4(self):
58
- string = "Hello, world!"
59
- self.assertEqual(count_string_tokens(string, model_name="gpt-4-0314"), 4)
60
-
61
-
62
- if __name__ == "__main__":
63
- unittest.main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Davidsamuel101/PPTGenerator/src/summarizer.py DELETED
@@ -1,82 +0,0 @@
1
- from typing import Dict, List, Tuple, Optional
2
- from tqdm import tqdm
3
- from transformers import PegasusForConditionalGeneration, PegasusTokenizer
4
- from src.text_extractor import TextExtractor
5
- from mdutils.mdutils import MdUtils
6
-
7
- import torch
8
- import fitz
9
- import copy
10
-
11
- class Summarizer():
12
- def __init__(self, model_name: str):
13
- self.device = "cuda" if torch.cuda.is_available() else "cpu"
14
- self.tokenizer = PegasusTokenizer.from_pretrained(model_name)
15
- self.model = PegasusForConditionalGeneration.from_pretrained(model_name).to(self.device)
16
- self.preprocess = TextExtractor()
17
-
18
- def extract_text(self, document: object) -> Dict[str, List[Tuple[str, str]]]:
19
- doc = fitz.open(document)
20
- self.filename = doc.name.split('/')[-1].split('.')[0]
21
- font_counts, styles = self.preprocess.get_font_info(doc, granularity=False)
22
- size_tag = self.preprocess.get_font_tags(font_counts, styles)
23
- texts = self.preprocess.assign_tags(doc, size_tag)
24
- slide_content = self.preprocess.get_slides(texts)
25
- return slide_content
26
-
27
- def __call__(self, slides: Dict[str, List[Tuple[str, str]]]) -> Dict[str, List[Tuple[str, str]]]:
28
- summarized_slides = copy.deepcopy(slides)
29
- for page, contents in tqdm(summarized_slides.items()):
30
- for idx, (tag, content) in enumerate(contents):
31
- if tag.startswith('p'):
32
- try:
33
- input = self.tokenizer(content, truncation=True, padding="longest", return_tensors="pt").to(self.device)
34
- tensor = self.model.generate(**input)
35
- summary = self.tokenizer.batch_decode(tensor, skip_special_tokens=True)[0]
36
- contents[idx] = (tag, summary)
37
- except Exception as e:
38
- print(f"Summarization Fails, Error: {e}")
39
-
40
- return summarized_slides
41
-
42
- def convert2markdown(self, summarized_slides: Dict[str, List[Tuple[str, str]]], target_path: Optional[str]=None) -> str:
43
- filename = self.filename
44
- if target_path:
45
- filename = target_path
46
- mdFile = MdUtils(file_name=filename)
47
- for k, v in summarized_slides.items():
48
- mdFile.new_line('---\n')
49
- for section in v:
50
- tag = section[0]
51
- content = section[1]
52
- if tag.startswith('h'):
53
- try:
54
- mdFile.new_header(level=int(tag[1]), title=content)
55
- except:
56
- continue
57
- if tag == 'p':
58
- contents = content.split('<n>')
59
- for content in contents:
60
- mdFile.new_line(f"{content}\n")
61
- markdown = mdFile.create_md_file()
62
- return markdown
63
-
64
- def remove_leading_empty_lines(self, file_path) -> None:
65
- with open(file_path, 'r') as file:
66
- lines = file.readlines()
67
-
68
- non_empty_lines = []
69
- found_first_word = False
70
-
71
- for line in lines:
72
- stripped_line = line.strip()
73
- if stripped_line and not found_first_word:
74
- found_first_word = True
75
- if found_first_word or stripped_line:
76
- non_empty_lines.append(line)
77
-
78
- with open(file_path, 'w') as file:
79
- file.writelines(non_empty_lines)
80
- return
81
-
82
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Dinoking/Guccio-AI-Designer/models/__init__.py DELETED
@@ -1,11 +0,0 @@
1
- # Copyright 2020 Erik Härkönen. All rights reserved.
2
- # This file is licensed to you under the Apache License, Version 2.0 (the "License");
3
- # you may not use this file except in compliance with the License. You may obtain a copy
4
- # of the License at http://www.apache.org/licenses/LICENSE-2.0
5
-
6
- # Unless required by applicable law or agreed to in writing, software distributed under
7
- # the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8
- # OF ANY KIND, either express or implied. See the License for the specific language
9
- # governing permissions and limitations under the License.
10
-
11
- from .wrappers import *
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Djacon/emotion_detection/main.py DELETED
@@ -1,84 +0,0 @@
1
- from fastapi import FastAPI, Request
2
- from pydantic import BaseModel
3
- from jinja2 import TemplateNotFound
4
- from fastapi.responses import HTMLResponse
5
- from fastapi.staticfiles import StaticFiles
6
- from fastapi.templating import Jinja2Templates
7
-
8
- from youtube import get_youtube_caption
9
- from inference import predict_emotions, predict_summarization
10
-
11
- MAX_ITER_SIZE = 3000
12
-
13
- app = FastAPI()
14
- app.mount("/files", StaticFiles(directory="files"), name="files")
15
- templates = Jinja2Templates(directory="static")
16
-
17
-
18
- @app.exception_handler(TemplateNotFound)
19
- async def not_found_exception_handler(request: Request, exc: TemplateNotFound):
20
- return templates.TemplateResponse("404.html", {"request": request},
21
- status_code=404)
22
-
23
-
24
- @app.get("/", response_class=HTMLResponse)
25
- async def read_homepage(request: Request):
26
- return templates.TemplateResponse(f"index.html", {"request": request,
27
- "page": "index"})
28
-
29
-
30
- @app.get("/{page}", response_class=HTMLResponse)
31
- async def read_html(request: Request, page: str = 'index'):
32
- if page.endswith(".html"):
33
- page = page[:-5]
34
- return templates.TemplateResponse(f"{page}.html", {"request": request,
35
- "page": page})
36
-
37
-
38
- class EmotionRequest(BaseModel):
39
- sum_type: str
40
- text: str
41
-
42
-
43
- @app.post('/predict_emotion')
44
- async def predict_emo(request: EmotionRequest):
45
- if request.sum_type == 'sum-video':
46
- text = get_youtube_caption(request.text)
47
- if not text:
48
- return 'Invalid Link'
49
- elif text == 'err':
50
- return 'Something goes wrong...'
51
- elif text == 'no-cap':
52
- return "Unfortunately, this youtube video doesn't contain captions"
53
- else:
54
- text = request.text
55
- return predict_emotions(text)
56
-
57
-
58
- @app.post('/predict_summarization')
59
- async def predict_sum(request: EmotionRequest):
60
- if request.sum_type == 'sum-video':
61
- text = get_youtube_caption(request.text)
62
- if not text:
63
- return 'Invalid Link'
64
- elif text == 'err':
65
- return 'Something goes wrong...'
66
- elif text == 'no-cap':
67
- return "Unfortunately, this youtube video doesn't contain captions"
68
- else:
69
- text = request.text
70
-
71
- try:
72
- if len(text) < MAX_ITER_SIZE:
73
- return predict_summarization(text)
74
-
75
- arr = []
76
- for i in range(min(len(text), 20_000) // MAX_ITER_SIZE):
77
- res = predict_summarization(
78
- text[MAX_ITER_SIZE*i:MAX_ITER_SIZE*(i+1)]).replace('\n', ' ')
79
- res = f'{res[0].upper()}{res[1:]}'
80
- arr.append(res)
81
- return '\n\n'.join(arr)
82
- except Exception as e:
83
- print('ERR:', e)
84
- return 'Something goes wrong...'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DragGan/DragGan-Inversion/stylegan_human/pti/pti_models/e4e/stylegan2/op/upfirdn2d.py DELETED
@@ -1,60 +0,0 @@
1
- import os
2
-
3
- import torch
4
- from torch.nn import functional as F
5
-
6
-
7
- module_path = os.path.dirname(__file__)
8
-
9
-
10
- def upfirdn2d(input, kernel, up=1, down=1, pad=(0, 0)):
11
- out = upfirdn2d_native(
12
- input, kernel, up, up, down, down, pad[0], pad[1], pad[0], pad[1]
13
- )
14
-
15
- return out
16
-
17
-
18
- def upfirdn2d_native(
19
- input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1
20
- ):
21
- _, channel, in_h, in_w = input.shape
22
- input = input.reshape(-1, in_h, in_w, 1)
23
-
24
- _, in_h, in_w, minor = input.shape
25
- kernel_h, kernel_w = kernel.shape
26
-
27
- out = input.view(-1, in_h, 1, in_w, 1, minor)
28
- out = F.pad(out, [0, 0, 0, up_x - 1, 0, 0, 0, up_y - 1])
29
- out = out.view(-1, in_h * up_y, in_w * up_x, minor)
30
-
31
- out = F.pad(
32
- out, [0, 0, max(pad_x0, 0), max(pad_x1, 0),
33
- max(pad_y0, 0), max(pad_y1, 0)]
34
- )
35
- out = out[
36
- :,
37
- max(-pad_y0, 0): out.shape[1] - max(-pad_y1, 0),
38
- max(-pad_x0, 0): out.shape[2] - max(-pad_x1, 0),
39
- :,
40
- ]
41
-
42
- out = out.permute(0, 3, 1, 2)
43
- out = out.reshape(
44
- [-1, 1, in_h * up_y + pad_y0 + pad_y1, in_w * up_x + pad_x0 + pad_x1]
45
- )
46
- w = torch.flip(kernel, [0, 1]).view(1, 1, kernel_h, kernel_w)
47
- out = F.conv2d(out, w)
48
- out = out.reshape(
49
- -1,
50
- minor,
51
- in_h * up_y + pad_y0 + pad_y1 - kernel_h + 1,
52
- in_w * up_x + pad_x0 + pad_x1 - kernel_w + 1,
53
- )
54
- out = out.permute(0, 2, 3, 1)
55
- out = out[:, ::down_y, ::down_x, :]
56
-
57
- out_h = (in_h * up_y + pad_y0 + pad_y1 - kernel_h) // down_y + 1
58
- out_w = (in_w * up_x + pad_x0 + pad_x1 - kernel_w) // down_x + 1
59
-
60
- return out.view(-1, channel, out_h, out_w)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ElainaFanBoy/MusicGen/audiocraft/data/__init__.py DELETED
@@ -1,8 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the license found in the
5
- # LICENSE file in the root directory of this source tree.
6
-
7
- # flake8: noqa
8
- from . import audio, audio_dataset